Subversion Repositories SmartDukaan

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
37728 17 d 3 h amit /trunk/ logging: stop three non-defects reporting to the error board as ERROR

log4j2.xml ships ERROR and above to GlitchTip, so the log level IS the filter.
Three sources of ordinary, expected behaviour were logging at ERROR and between
them accounted for 51,244 events -- 43% of the whole board -- none of them a bug.
GlobalExceptionHandler already logs ProfitMandiBusinessException at WARN and is
unchanged; every leak below bypassed it.

1. Session state (27,302 events, 23% of the board). CookiesProcessor and the two
interceptors logged a missing or expired cookie at ERROR. A logged-out or
anonymous visitor is the normal case -- the code already handles it by
redirecting to /login or returning 403 -- and each of these sits in a class
whose surrounding lines already log at DEBUG. These never reach the handler,
which is why its WARN-level treatment never applied. Now DEBUG.

2. Client disconnect (19,349 events). There was no handler for it, so a client
hanging up mid-response fell through to @ExceptionHandler(Exception.class) and
was recorded as an unhandled server bug. Adds an IOException handler to both
GlobalExceptionHandlers that logs a disconnect at DEBUG and everything else at
ERROR with its 500 intact.

⚠ ClientAbortException CANNOT be imported here: catalina is provided by the
container and is not on either module's compileClasspath (verified against
the configuration, not assumed). The match is therefore on the simple class
name plus the "broken pipe"/"connection reset" messages, walked down the cause
chain. A genuine IOException matches none of those and keeps its ERROR.

The handler returns null for a disconnect rather than a body: the connection
that would carry it is already closed, and writing to it is what raised the
exception. Null is the supported way to say "handled, no body" --
HttpEntityMethodProcessor marks the request handled before reading the value.

3. Business exceptions re-logged at ERROR (11 sites). Each catches a
ProfitMandiBusinessException, logs it, and CONTINUES with a fallback -- a
missing wallet history defaults to an empty list, a user not found by primary
email is retried against the secondary. That is an expected outcome being
reported as a failure, and logging it at ERROR pre-empted the handler that
would have logged it at WARN. Now WARN.

Selenium/WebDriver (58,776 events) is deliberately untouched: that is a genuinely
broken ChromeDriver, and muting it would hide Oppo/Realme IMEI activation failing.
It looks like noise only because one broken thing repeated 52,000 times.
 
37651 22 d 0 h vikas /trunk/ LMS click to call  
36548 145 d 21 h amit /trunk/profitmandi-fofo/src/ Monitor type upload: allow duplicate catalog_id (keep first), make dialog scrollable  
36442 160 d 2 h amit /trunk/profitmandi-fofo/src/ Rename monitor type 'normal' to 'base' in controller, validator, UI, and tests  
36404 164 d 1 h amit /trunk/profitmandi-fofo/src/ Add catalog monitor type upload, sample sheet, Placement Plan UI tagging (orange/yellow), Today PO csv column, placement-plan-statement.xlsx header coloring  
35943 216 d 21 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/ Reduce log noise: demote interceptor/cookie per-request INFO to DEBUG, demote large object dumps and loop logging to DEBUG, fix string concatenation in log statements  
33741 761 d 2 h amit.gupta /trunk/ Now allo EWB as well Invoice files related  
33070 942 d 21 h amit.gupta /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/util/ patch for  
31637 1319 d 0 h tejbeer /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/util/  
31281 1391 d 21 h amit.gupta /trunk/ Fixed config and margin calculations  
27238 2180 d 1 h amit.gupta /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/util/  
27236 2180 d 2 h amit.gupta /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/util/  
27235 2180 d 2 h amit.gupta /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/util/  
27229 2180 d 3 h amit.gupta /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/ Add readonly  
26743 2310 d 18 h amit.gupta /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/ Added Cookies handler tomcat8 compatible  
24383 2841 d 22 h amit.gupta /trunk/ Added major commit to remove dtr-data  
23798 3027 d 5 h amit.gupta /trunk/ Fixed role related changes.  
23797 3027 d 8 h amit.gupta /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/util/  
23786 3038 d 0 h amit.gupta /trunk/ Major commit.
1. Fixed profitmandi-web refactored as per new role management logic.
2. Added Allocation Mechanism
3. Minor bug fixes.
 
23784 3043 d 19 h ashik.ali /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/ Role mgmt and non billable items to be scan  

Show All