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

fix: add ability to set the log level via environment variable #103

Merged
merged 2 commits into from
Nov 10, 2021

Conversation

iloveitaly
Copy link
Contributor

As discussed in https://github.com/ActivityWatch/aw-client/pull/57/files this PR adds the ability to set the log level of all AW components via a ENV variable.

@iloveitaly
Copy link
Contributor Author

Friendly reminder here @ErikBjare

Copy link
Member

@ErikBjare ErikBjare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, got a bit distracted by the underscore in the env var (LOGLEVEL vs LOG_LEVEL) and forgot about this. But underscore or not doesn't really matter.

I have one suggestion though. If you're okay with it and it looks good (haven't tested it) I'll apply it and merge :)

aw_core/log.py Outdated Show resolved Hide resolved
Co-authored-by: Erik Bjäreholt <erik.bjareholt@gmail.com>
@ErikBjare
Copy link
Member

Slowpoke here, finally getting around to merging this. Thanks!

@ErikBjare ErikBjare changed the title Add ability to set the log level via environment variable fix: add ability to set the log level via environment variable Nov 10, 2021
@ErikBjare ErikBjare merged commit 22d3ded into ActivityWatch:master Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants