Modmail icon indicating copy to clipboard operation
Modmail copied to clipboard

Logviewer/logviewer patron Breaks for every thread

Open lorenzo132 opened this issue 3 years ago • 3 comments

Bot Version

v3.11.0-dev2

How are you hosting Modmail?

Systemd

Error Logs

https://hastebin.cc/ajubocufuw.sql

Screenshots

No response

Additional Information

https://publicmodmail.logs.vodka/logs/04f519d55a76

lorenzo132 avatar Nov 20 '21 18:11 lorenzo132

Those are logviewer its logs, as modmail gave 0 logs

lorenzo132 avatar Nov 20 '21 18:11 lorenzo132

This needs to be fixed in the log viewer, the error is occurring due to dpy being timeaware and log viewer using datetime.datetime.utcnow(), which is a dirty function and isn’t aware, it can be fixed by changing it to datetime.datetime.now(datetime.timezone.utc).

TheDiscordHistorian avatar Nov 21 '21 04:11 TheDiscordHistorian

  • https://github.com/kyb3r/logviewer/pull/44
  • https://github.com/kyb3rr/logviewer-premium/pull/23

fourjr avatar Nov 21 '21 14:11 fourjr