Skip to content

Log spam with aw-server-rust #975

@martin-t

Description

@martin-t
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions