#12691 closed defect (fixed)
Reduce error level for invalid session id
| Reported by: | Ryan J Ollos | Owned by: | Ryan J Ollos |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2.1 |
| Component: | web frontend | Version: | |
| Severity: | normal | Keywords: | session |
| Cc: | Branch: | ||
| Release Notes: |
Reduce logging level from error to warning for TracError: Session ID must be alphanumeric. |
||
| API Changes: |
Added |
||
| Internal Changes: | |||
Description (last modified by )
I see these errors in the logs rather frequently:
2017-02-16 18:00:27,670 Trac[main] ERROR: can't retrieve session: TracError: Session ID must be alphanumeric.
I think we could change the log level to warning: tags/trac-1.2/trac/web/main.py@:352#L348. Error implies some abnormal behavior that needs attention, whereas this is just a case of invalid input.
Attachments (0)
Change History (4)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
This was shortsighted. The test failure demonstrates that there are situations in which we may want to log an error. Maybe we should raise an InvalidSessionId exception and log that at warning level, with other TracErrors logged at error level?
comment:3 by , 9 years ago
| API Changes: | modified (diff) |
|---|
Proposed changes in log:rjollos.git:t12691_session_id_tracvalueerror and log:rjollos.git:t12691_session_id_tracvalueerror_trunk.
DONE Update TracDev/Exceptions.
comment:4 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | reopened → closed |



Committed to 1.2-stable in r15538, merged to trunk in r15539.