ActivityWatch / activitywatch

The best free and open-source automated time tracker. Cross-platform, extensible, privacy-focused.
https://activitywatch.net/
Mozilla Public License 2.0
11.96k stars 545 forks source link

Log spam with aw-server-rust #975

Closed martin-t closed 10 months ago

martin-t commented 11 months ago

Describe the bug

At some points, logs in /home/martin/.cache/activitywatch/log/aw-server-rust/ started getting spammed with this several times a minute:

[2023-10-25 04:05:05][INFO][rocket_cors::_]: Verifying origin: moz-extension://6baf0563-f963-40b0-9366-2251a0f2d973
[2023-10-25 04:05:05][INFO][rocket_cors::_]: Origin has a regex match? true
[2023-10-25 04:05:05][INFO][rocket_cors::_]: Verifying origin: moz-extension://6baf0563-f963-40b0-9366-2251a0f2d973
[2023-10-25 04:05:05][INFO][rocket_cors::_]: Origin has a regex match? true
[2023-10-25 04:05:05][INFO][rocket_cors::_]: "Catch all" handling of CORS `OPTIONS` preflight for request OPTIONS /api/0/buckets/aw-watcher-web-firefox/heartbeat?pulsetime=80
[2023-10-25 04:05:05][INFO][rocket_cors::_]: Verifying origin: moz-extension://6baf0563-f963-40b0-9366-2251a0f2d973
[2023-10-25 04:05:05][INFO][rocket_cors::_]: Origin has a regex match? true

Looks like it started when i updated from 0.12.2 to 0.12.3b10 and it persists on 0.12.3b11.

To Reproduce

Use aw-server-rust + the firefox extension and open the logs.

Expected behavior

Logs shouldn't grow to several MB per day in normal usage.

BelKed commented 11 months ago

I can also report a similar behaviour on 0.12.3b12. Seems like it happens on all beta versions...

ErikBjare commented 10 months ago

Thanks for reporting! Fixed and will be in the next release.