On 8/24/21 9:44 PM, Christof Ressi wrote:
for unknown reasons, the values accepted by verbose() and logpost() have an offset.
Why? Oh why?

i've been involved in that code, and i don't have an anwer :-(


If we let PD_CRITICAL start at 5 (or even higher), then both verbose() and logpost() can differentiate between the old and the new log levels and add the respective offsets.

if (loglevel >= PD_CRITICAL) {
     // new log level
} else {
     // old log level
}

ah well, but there's externals that happen to use even higher loglevels.
one could of course shift the PD_CRITICAL to e.g. 1000 or so to be on the safe side.
but then: why not fix the offending libraries instead?

gf,masdr
IOhannes

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
Pd-dev mailing list
[email protected]
https://lists.puredata.info/listinfo/pd-dev

Reply via email to