1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-07-01 00:45:22 +02:00
Commit Graph

3 Commits

Author SHA1 Message Date
fcdb2f2938 Revert "Always use Logger class and try to log once per event"
This reverts commit a57a717717a676555b4e28d5746828477c2f9811.
2024-03-31 09:45:16 +11:00
ba6e7c03ec Always use Logger class and try to log once per event
This unifies logging across the backend to always use the Logger class,
always only logs to stdout (rather than an inconsistent mix of stdout
and stderr, depending on whether console.error was used), and removes
logging where two log events happened for the same message

For example, this pattern:

```js
Logger.error("Whoops, something went wrong:")
console.error(err)
```

That causes two separate log events, and depending on the log transport
used, could cause relevant log messages to get split across multiple
events and therefore be harder (usually just more tedious) to connect
and debug in production environments.
2024-03-31 09:45:16 +11:00
2b0d1a96a6 remove threading #641 2023-10-14 17:54:21 +02:00