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

[Bug]: Log levels in GUI - both warning and warn exists - selecting warn and zigbee2mqtt craches #2369

Closed
uffevedenbrant opened this issue Jan 6, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@uffevedenbrant
Copy link

What happened?

Under the Zigbee2Mqtt GUI / Logs , selecting Log Level both "warning" as well as "warn" exists in the dropdown menu.
Selecting "warn" seems to crash the zigbee2mqtt addon with the following message shown in stacktrace.
This is most likely only a GUI issue that needs to be adjusted.
Remove warn level or change it to some other syslog level actually intended
I have both 1.42.0 as well as 2.0.2 installation and it exists in both.

If the addon crashed a workaround is to change the log level in the zigbee2mqtt configuration.yaml file

log_level: warn

to perhaps info instead and for me the addon starts again without crashing

log_level: info

What browsers are you seeing the problem on?

Microsoft Edge

Relevant stacktrace

Starting Zigbee2MQTT without watchdog.
AssertionError [ERR_ASSERTION]: 'warn' is not valid log_level, use one of 'error, warning, info, debug'
at Logger.init (/app/lib/util/logger.ts:41:15)
at new Controller (/app/lib/controller.ts:79:16)
at start (/app/index.js:159:18)

Did you download state.json.zip?

I will not attach state.json.zip

@Koenkk
Copy link
Collaborator

Koenkk commented Jan 6, 2025

Fixed in Koenkk/zigbee2mqtt#25634!

Changes will be available in the dev branch in a few hours from now.

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

No branches or pull requests

2 participants