Issue 2551418
Created on 2026-05-30 16:51 by rouilj, last changed 2026-05-31 09:38 by schlatterbeck.
| Messages | |||
|---|---|---|---|
| msg8457 | Author: [hidden] (rouilj) | Date: 2026-05-30 16:51 | |
In issue 2551417 Ross saw the following oddness in the logs: 127.0.0.1 - - [23/May/2026 02:07:10] "GET /demo/rest HTTP/1.1" 403 - 127.0.0.1 - - [22/May/2026 19:07:10] "GET /favicon.ico HTTP/1.1" 200 - 127.0.0.1 - - [23/May/2026 02:07:42] "GET /demo/index HTTP/1.1" 200 - 127.0.0.1 - - [23/May/2026 02:07:42] "GET /demo/rest HTTP/1.1" 403 - 127.0.0.1 - - [22/May/2026 19:08:57] "GET / HTTP/1.1" 302 - 127.0.0.1 - - [23/May/2026 02:08:57] "GET /demo/index HTTP/1.1" 200 - note the change un timezone for / and /favicon to US/Pacific from the UTC used by demo. This is because demo has the timezone set to utc in it's config.ini while the server is in the Us/Pacific timezone. So / and /favicon are in server timezone. Do we fix this? If so how? I think this can be improved. We can: 1 override the timeformat setting for logger to include the timezone 2 force timezone to GMT (since it doesn't have shifts like daylight savings) 3 force the timezone to one set by the user Within a tracker, the times are logged consistently in a single timezone. Logging from different trackers can have different default timezones. roundup-server when logging a url outside a tracker, logs using the server timezone. When running wsgi under waitress I suspect a similar issue if you use logging middleware to generate http style log records. I am sort of leaning toward 1 and add timezones since defining the format should take effect across the stack in a wsgi environment (provided logging occurs after roundup initializes). Thoughts? |
|||
| msg8459 | Author: [hidden] (rouilj) | Date: 2026-05-30 16:58 | |
Also this could be a doc bug and recommend that roundup-server be started by setting the TZ variable explicitly (I think this works): TZ=UTC roundup-server ..... Similar methods could work for gnuicorn, zope, mod-python etc where the server logs independent of any tracker's timezone config. |
|||
| msg8461 | Author: [hidden] (schlatterbeck) | Date: 2026-05-31 09:38 | |
As already commented in issue2551417 (sorry for that I hadn't seen there is a separate issue): Concerning the different timezones in the logs: We may want to add a logging-timezone setting: If we're running several trackers with different timezones in a single server we may want the logging to be in a consistent timezone. Not very urgent, though, because I think anyone hosting multiple sites will do so in a (u)wsgi server behind a webserver, so logging there is using other facilities that already generate consistent timestamps for log entries. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2026-05-31 09:38:38 | schlatterbeck | set | nosy:
+ schlatterbeck messages: + msg8461 |
| 2026-05-30 16:58:50 | rouilj | set | messages: + msg8459 |
| 2026-05-30 16:51:09 | rouilj | create | |