Re: [Rpm-ecosystem] rpm logs to stdout/stderr when callback is set

2022-04-04 Thread Lukáš Hrázký
On Thu, 2022-03-31 at 11:48 +0300, Panu Matilainen wrote: > On 3/25/22 14:47, Lukáš Hrázký wrote: > > > > (1) There are instances when the code writes to stdout/stderr directly > > instead via logging: > > > > One case at this spot: > > https://gith

Re: [Rpm-ecosystem] rpm logs to stdout/stderr when callback is set

2022-03-30 Thread Lukáš Hrázký
On Fri, 2022-03-25 at 13:47 +0100, Lukáš Hrázký wrote: > (2b) Somewhat related, due to the above limitation I'm setting the rpm > log callback only just before we start working with an rpm transaction > and lock this with a static variable lock so that the log messages > don't get

Re: [Rpm-ecosystem] rpm logs to stdout/stderr when callback is set

2022-03-25 Thread Lukáš Hrázký
On Tue, 2022-03-15 at 15:48 +0100, Lukáš Hrázký wrote: > Hello everyone, > > I'm setting up rpm logging in libdnf 5 and even after setting a log > callback function via rpmlogSetCallback(), rpm duplicates all messages > to stdout/stderr. > > This is extremely impractical, c

[Rpm-ecosystem] rpm logs to stdout/stderr when callback is set

2022-03-15 Thread Lukáš Hrázký
Hello everyone, I'm setting up rpm logging in libdnf 5 and even after setting a log callback function via rpmlogSetCallback(), rpm duplicates all messages to stdout/stderr. This is extremely impractical, can something be added to the API so that I can turn it off? Ideally rpm shouldn't log to

Re: [Rpm-ecosystem] [Rpm-maint] RFC: Relocate RPM and DNF databases to /usr

2022-01-11 Thread Lukáš Hrázký
Chris, apologies for the late reply. On Mon, 2021-12-13 at 13:02 -0500, Chris Murphy wrote: > On Mon, Dec 13, 2021 at 10:07 AM Lukáš Hrázký wrote: > > > > On Fri, 2021-12-10 at 17:08 +0100, Daniel Mach wrote: > > > > I understand your point about auditing,

Re: [Rpm-ecosystem] [Rpm-maint] RFC: Relocate RPM and DNF databases to /usr

2021-12-13 Thread Lukáš Hrázký
December/018662.html > [2] http://lists.rpm.org/pipermail/rpm-maint/2021-December/018687.html > } > > On Fri, Dec 10, 2021 at 7:39 AM Lukáš Hrázký wrote: > > > > On Fri, 2021-12-10 at 06:16 -0500, Neal Gompa wrote: > > > (Adding the correct Daniel Mach email address

Re: [Rpm-ecosystem] [Rpm-maint] RFC: Relocate RPM and DNF databases to /usr

2021-12-13 Thread Lukáš Hrázký
On Fri, 2021-12-10 at 17:08 +0100, Daniel Mach wrote: > On 10. 12. 21 13:39, Lukáš Hrázký wrote: > > On Fri, 2021-12-10 at 06:16 -0500, Neal Gompa wrote: > > > (Adding the correct Daniel Mach email address, he moved from Red Hat > > > to SUSE last month...) > > &

Re: [Rpm-ecosystem] [Rpm-maint] RFC: Relocate RPM and DNF databases to /usr

2021-12-10 Thread Lukáš Hrázký
On Fri, 2021-12-10 at 06:16 -0500, Neal Gompa wrote: > (Adding the correct Daniel Mach email address, he moved from Red Hat > to SUSE last month...) > > On Thu, Dec 9, 2021 at 10:11 AM Chris Murphy wrote: > > > > I'm pretty sure I'm generally opposed to the idea of logs being rolled > > back