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 file has wrong name #369

Closed
korikuzma opened this issue Jun 25, 2024 · 3 comments
Closed

log file has wrong name #369

korikuzma opened this issue Jun 25, 2024 · 3 comments
Labels
bug Something isn't working priority:low Low priority

Comments

@korikuzma
Copy link
Member

Describe the bug

Log file being created has the wrong name

Steps to reproduce

  1. Run python3 -m metakb.cli update -r inside virtual env

  2. In a separate terminal (at the root dir)

$ ls | grep .log
gene.log

Expected behavior

Log file should be named metakb.log

Current behavior

Log file is named gene.log

Possible reason(s)

Gene Normalizer logging config is overriding MetaKB's logging config. We have to configure MetaKB logging before importing any modules that define their own logging config.

Suggested fix

Having this is the top of the CLI module creates a log file with the expected name:

from metakb.log_handle import configure_logs
configure_logs()

Not really the best solution because it causes several ruff errors: Module level import not at top of file.

Branch, commit, and/or version

branch: staging
commit: 7301382

Screenshots

No response

Environment details

No response

Additional details

I think that @jsstevenson was working on resolving logging configs in our apps, so this may not be an issue once new releases are made.

@korikuzma korikuzma added bug Something isn't working priority:low Low priority labels Jun 25, 2024
@jsstevenson
Copy link
Member

I think that @jsstevenson was working on resolving logging configs in our apps, so this may not be an issue once new releases are made.

Yeah, this is fixed in a development branch of the gene normalizer but unfortunately not on the main branch. I can/should probably just make a quick fix.

@jsstevenson
Copy link
Member

should be fixed by cancervariants/gene-normalization#351

@korikuzma
Copy link
Member Author

should be fixed by cancervariants/gene-normalization#351

Confirmed. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:low Low priority
Projects
None yet
Development

No branches or pull requests

2 participants