zeromq / czmq

High-level C binding for ØMQ
czmq.zeromq.org
Mozilla Public License 2.0
1.18k stars 525 forks source link

Problem: When zauth unable to load password file it uses zsys `info` instead of `warn` #2281

Open BHare1985 opened 6 months ago

BHare1985 commented 6 months ago

Solution: Use zsys_warning to match official project malamute's behavior

Problem line: https://github.com/zeromq/czmq/blob/master/src/zauth.c#L137

When debugging https://github.com/zeromq/malamute/pull/335 I noticed differing behavior where if the client or server was unable to load a .cfg file then it would give zsys_warning see line here where as czmq when using the zauth actor only uses zsys_info when it cannot load a config file. This means it would be missed in tests/prod unless VERBOSE is on - this seems more like a warning to me