Re: per-service log levels
By: deon to Digital Man on Thu Jan 23 2025 12:32 pm
Re: per-service log levels
By: Digital Man to deon on Wed Jan 22 2025 04:21 pm
I've been trying to get IMAP into Debug mode (for my delete issue on mac), and it wont go into debug mode unless I put LogLevel = Debug in sbbs.ini
In services.ini I have this:
[IMAP]
LogLevel=Debug
Yeah, that tracks (sounds correct).
Howdy, so I finished my debugging, but I dont think debuglevel is working for services (or it didnt work for me, unless I put sbbs.ini LogLevel = Debug).
Anyway, I have now reverted sbbs.ini back to LogLevel = Informational, and services.ini [IMAP] is still LogLevel = Debug, but its not doing "Debug" logging.
ie: log(LOG_DEBUG,'Im in DEBUG mode'); in imapservice.js doesnt appear in journalctl (changing to LOG_WARNING does though).
In order for *any* debug-level log messages to be logged by sbbs (and that includes all scripts executed by sbbs, including services), you'd have to have one of the LogLevel settings in sbbs.ini set to "debug". Additionally, each service can also be set to filter-out lower-severity log messages (by setting its log level to something less than "debug").
Think of it like a chain that the messages have to go through and each link in the chain can filter out lower seveirty messages. If that link filters the message, it never gets to the next link.
--
digital man (rob)
This Is Spinal Tap quote #34:
We'd love to stand around and chat, but we've gotta sit down in the lobby Norco, CA WX: 68.9øF, 4.0% humidity, 6 mph ENE wind, 0.00 inches rain/24hrs
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net