Allow setting DEBUG mode during runtime. #750

Open
opened 2026-10-05 04:42:33 +02:00 by adam · 0 comments
Owner

Sometimes ZNC fails during runtime and you're not sure why. ZNC doesn't log, and DEBUG() is your only hope of resolution.

Allowing DEBUG mode to be turned on during runtime would allow you to troubleshoot this a bit better, especially as "failed to write to config" errors aren't uncommon and znc is great at telling you absolutely nothing useful at all without DEBUG. example here

Piping DEBUG() through *status while it's enabled for bonus points.

Yeah, there might be security concerns. Broadcast it to all users ideally, but if you're using a znc provider you don't trust that's just your fault.

Sometimes ZNC fails during runtime and you're not sure why. ZNC doesn't log, and DEBUG() is your only hope of resolution. Allowing DEBUG mode to be turned on during runtime would allow you to troubleshoot this a bit better, especially as "failed to write to config" errors aren't uncommon and znc is great at telling you absolutely nothing useful at all without DEBUG. [example here](https://github.com/znc/znc/blob/2fcde9f2e111e23c15c4941a1ed0248944e6d7a5/src/znc.cpp#L457-L615) Piping DEBUG() through *status while it's enabled for bonus points. Yeah, there might be security concerns. Broadcast it to all users ideally, but if you're using a znc provider you don't trust that's just your fault. <!-- github-sync-id:202144342 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#750