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

Wrong Implicit log level overridding when --log-level argument is not provided #2759

Closed
jopemachine opened this issue Aug 22, 2024 · 0 comments · Fixed by #2760
Closed

Wrong Implicit log level overridding when --log-level argument is not provided #2759

jopemachine opened this issue Aug 22, 2024 · 0 comments · Fixed by #2760
Assignees
Labels
comp:cli Related to CLI component
Milestone

Comments

@jopemachine
Copy link
Member

What Operating System(s) are you seeing this problem on?

Linux (x86-64)

Backend.AI version

main

Describe the bug

Even if I set the log-level to DEBUG in the toml file, the log-level is always overridden by the default value (INFO) from the CLI, resulting in the logging level always being set to INFO regardless of the config file's log-level.

As a result, it is not possible to change the log-level when using commands other than start-server that do not include the --log-level argument.

To Reproduce

  1. Set the logging level to debug in the toml configuration file.
  2. Run a command that does not include the --log-level argument, such as any command other than start-server.
  3. Observe that the logging level is set to INFO instead of DEBUG.

Expected Behavior

The log-level set in the toml file should be respected, and commands that do not include the --log-level argument should use the log-level specified in the toml configuration.

Anything else?

No response

@jopemachine jopemachine added the type:bug Reports about that are not working label Aug 22, 2024
@jopemachine jopemachine self-assigned this Aug 22, 2024
@jopemachine jopemachine changed the title Wrong Implicit log-level overridding when --log-level argument is not provided Wrong Implicit log level overridding when --log-level argument is not provided Aug 22, 2024
@jopemachine jopemachine added the comp:cli Related to CLI component label Aug 22, 2024
@jopemachine jopemachine added this to the 24.09 milestone Aug 23, 2024
@achimnol achimnol removed the type:bug Reports about that are not working label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:cli Related to CLI component
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants