Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log spam with aw-server-rust #975

Closed
2 tasks done
martin-t opened this issue Oct 25, 2023 · 2 comments
Closed
2 tasks done

Log spam with aw-server-rust #975

martin-t opened this issue Oct 25, 2023 · 2 comments

Comments

@martin-t
Copy link

  • I am on the latest ActivityWatch version.

  • I have searched the issues of this repo and believe that this is not a duplicate.

  • OS name and version: Kubuntu 22.04

  • ActivityWatch version: 0.12.3b11

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][�[32mINFO�[0m][rocket_cors::_]: Verifying origin: moz-extension://6baf0563-f963-40b0-9366-2251a0f2d973
[2023-10-25 04:05:05][�[32mINFO�[0m][rocket_cors::_]: Origin has a regex match? true
[2023-10-25 04:05:05][�[32mINFO�[0m][rocket_cors::_]: Verifying origin: moz-extension://6baf0563-f963-40b0-9366-2251a0f2d973
[2023-10-25 04:05:05][�[32mINFO�[0m][rocket_cors::_]: Origin has a regex match? true
[2023-10-25 04:05:05][�[32mINFO�[0m][rocket_cors::_]: "Catch all" handling of CORS `OPTIONS` preflight for request �[32mOPTIONS�[0m �[34m/api/0/buckets/aw-watcher-web-firefox/heartbeat?pulsetime=80�[0m
[2023-10-25 04:05:05][�[32mINFO�[0m][rocket_cors::_]: Verifying origin: moz-extension://6baf0563-f963-40b0-9366-2251a0f2d973
[2023-10-25 04:05:05][�[32mINFO�[0m][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
Copy link
Contributor

BelKed commented Oct 26, 2023

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

@ErikBjare
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants