[Rpm-maint] [rpm-software-management/rpm] Add rpmLogOnce to filter log message (Issue #3395)

Florian Festi notifications at github.com
Tue Oct 29 09:41:28 UTC 2024


#3336 calls for this to be independent of the process life time. The issue here is that the whole logging system is bound to the process as it is build on top of a global variable.

The right thing IMHO would be adding this functionality to the global log context for now and deal with the issue of non-global logging separately. For now we could add just one new function:

void rpmlogOnce (const char * key, int code, const char *fmt, ...);

`rpmlogClose` would also clear the memory of what has already logged. So far this is only used in `rpmcliFini` which is only called at the end of the command line tools.

So this is basically a non solution but it moves it in with the logging global context issue that we do have anyway. 




-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3395#issuecomment-2443717627
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3395/2443717627 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241029/8903f0e3/attachment.html>


More information about the Rpm-maint mailing list