-
per-service log levels
From
deon@VERT/ALTERANT to
Digital Man on Thursday, January 23, 2025 10:11:48
Howdy,
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]
Enabled=true
Port=143
Command=imapservice.js
Options=NO_HOST_LOOKUP|NO_USER_PROT
LogLevel=Debug
(I even tried lowercase "debug"). That should do it right? IE: Only IMAP in verbose debug mode, and everything else (via sbbs.ini) in Informational.
...ëîåï
---
þ Synchronet þ AnsiTEX bringing back videotex but with ANSI
-
From
Digital Man@VERT to
deon on Wednesday, January 22, 2025 16:21:04
Re: per-service log levels
By: deon to Digital Man on Thu Jan 23 2025 10:11 am
> Howdy,
>
> 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]
> Enabled=true
> Port=143
> Command=imapservice.js
> Options=NO_HOST_LOOKUP|NO_USER_PROT
> LogLevel=Debug
>
> (I even tried lowercase "debug"). That should do it right? IE: Only IMAP in
> verbose debug mode, and everything else (via sbbs.ini) in Informational.
Yeah, that tracks (sounds correct).
--
digital man (rob)
Steven Wright quote #5:
82.7% of all statistics are made up on the spot.
Norco, CA WX: 73.2øF, 5.0% humidity, 11 mph NNW wind, 0.00 inches rain/24hrs
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deon@VERT/ALTERANT to
Digital Man on Thursday, January 23, 2025 12:32:37
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).
...ëîåï
---
þ Synchronet þ AnsiTEX bringing back videotex but with ANSI
-
From
Digital Man@VERT to
deon on Wednesday, January 22, 2025 18:40:22
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
-
From
deon@VERT/ALTERANT to
Digital Man on Thursday, January 23, 2025 15:25:51
Re: per-service log levels
By: Digital Man to deon on Wed Jan 22 2025 06:40 pm
Howdy,
> 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").
OK, fair enough.
I was thinking I could set it to just "verbose/debug this service" without having to have verbose debugging of anything else.
All good...
...ëîåï
---
þ Synchronet þ AnsiTEX bringing back videotex but with ANSI