zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Refusing to start with log_level: warn after update

Open M66B opened this issue 1 year ago • 3 comments

What happened?

Does not work:

advanced:
  log_level: warn

What did you expect to happen?

Works:

advanced:
  log_level: warning

How to reproduce it (minimal and precise)

Updated to 1.37.1-dev commit: 75608c7 Don't know previous version, sorry.

Zigbee2MQTT version

1.37.1-dev commit: 75608c7

Adapter firmware version

n/a

Adapter

n/a

Setup

docker

Debug log

No response

M66B avatar May 20 '24 10:05 M66B

Hello,

You are using the dev branch and I believe this is an expected behavoir after : https://github.com/Koenkk/zigbee2mqtt/commit/2eec6a4d26a69ed279206c7b988d56a9656ecaa2

Basically warn is deprecated and use warning instead. I think the documentation will be updated soon.

CC @Nerivec

LaurentChardin avatar May 20 '24 16:05 LaurentChardin

@Koenkk Looks like this is not enough for "smooth transition". Some validation happening earlier?

Nerivec avatar May 20 '24 16:05 Nerivec

Yep, and docs should also be upgraded when dev branch makes it to release advanced: Optional: Logging level, options: debug, info, warn, error (default: info)

https://www.zigbee2mqtt.io/guide/configuration/logging.html

ytugarev avatar May 21 '24 13:05 ytugarev

@M66B should be fixed now, can you confirm?

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

Koenkk avatar May 22 '24 18:05 Koenkk

@Koenkk It's fine now, thanks!

M66B avatar May 23 '24 08:05 M66B