Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-30 Thread Andy Pieters
On Wed, 30 Aug 2023 at 17:55, Dave Howorth wrote: > On Tue, 29 Aug 2023 23:05:28 +0200 > Nils Kattenbeck wrote: > > No, you can use systemd-cat to then invoke your script which applies > > to every output of it. > > The solution to problems with gmail is simple. Stop using gmail and > find anoth

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-30 Thread Dave Howorth
On Tue, 29 Aug 2023 23:05:28 +0200 Nils Kattenbeck wrote: > No, you can use systemd-cat to then invoke your script which applies > to every output of it. > > Also, you can just use reply-all in gmail (or even set it as the > default in the settings) to have the correct behaviour of sending > mail

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Cecil Westerhof
Op di 29 aug 2023 om 23:05 schreef Nils Kattenbeck : > No, you can use systemd-cat to then invoke your script which applies > to every output of it. > OK, I will dive into it. > Also, you can just use reply-all in gmail (or even set it as the > default in the settings) to have the correct beha

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Nils Kattenbeck
No, you can use systemd-cat to then invoke your script which applies to every output of it. Also, you can just use reply-all in gmail (or even set it as the default in the settings) to have the correct behaviour of sending mails also the the mailing list. On Tue, Aug 29, 2023 at 10:25 PM Cecil We

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Cecil Westerhof
Aargh, forgot again that gmail works differently when replying. :'-{ Op di 29 aug 2023 om 21:07 schreef Cecil Westerhof : > Op di 29 aug 2023 om 19:47 schreef Nils Kattenbeck : > >> Hi, At least for simple cases you can use systemd-cat which allows >> setting different priorities for stdout and s

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Nils Kattenbeck
Hi, At least for simple cases you can use systemd-cat which allows setting different priorities for stdout and stderr. It even explicitly states that doing so will lose the ordering guarantees which are only possible when attaching stdout and stderr to the same fd (as Lennart said). Greetings Nils

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Cecil Westerhof
Op di 29 aug 2023 om 11:58 schreef Lennart Poettering < lenn...@poettering.net>: > On Di, 29.08.23 11:56, Cecil Westerhof (cldwester...@gmail.com) wrote: > > > I agree with that usecase, and we have discussed this many times > > > before, but we couldn#t come up with a nice way to make everything

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Lennart Poettering
On Di, 29.08.23 11:56, Cecil Westerhof (cldwester...@gmail.com) wrote: > > I agree with that usecase, and we have discussed this many times > > before, but we couldn#t come up with a nice way to make everything > > work: proper ordering and distintion of stdout/stderr. > > I agree that the default

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Cecil Westerhof
Op di 29 aug 2023 om 11:36 schreef Lennart Poettering < lenn...@poettering.net>: > On Di, 29.08.23 11:20, Cecil Westerhof (cldwester...@gmail.com) wrote: > > > Also: everything has a timestamp, so there is in my opinion when you > choose > > to take them apart no big problem. > > For stream connec

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Lennart Poettering
On Di, 29.08.23 11:20, Cecil Westerhof (cldwester...@gmail.com) wrote: > Also: everything has a timestamp, so there is in my opinion when you choose > to take them apart no big problem. For stream connections like those used for stdout/stderr, lines do not come with timestamps. We add them on the

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Cecil Westerhof
Op di 29 aug 2023 om 10:13 schreef Lennart Poettering < lenn...@poettering.net>: > On Sa, 26.08.23 06:14, Cecil Westerhof (cldwester...@gmail.com) wrote: > > Please keep mails like this on the mailing list. > Sorry, I am used to that when I am responding to a list, my reply goes to the list. Gmai

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-29 Thread Lennart Poettering
On Sa, 26.08.23 06:14, Cecil Westerhof (cldwester...@gmail.com) wrote: Please keep mails like this on the mailing list. > > We should not "assume the worst", hence given that the stderr stream > > is typically used for all kinds of informational messages we should > > not always assume its an err

Re: [systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-25 Thread Lennart Poettering
On Do, 24.08.23 16:31, Cecil Westerhof (cldwester...@gmail.com) wrote: > Normally in a script when something is send to stdout it is seen as an > error has occurred. > But in systemd both get a priority of 6 (info). > Why does stderr not get a priority of 3 (err), or at least lower as > stdout? s

[systemd-devel] Why are the priorities of stdout and stderr the same

2023-08-24 Thread Cecil Westerhof
Normally in a script when something is send to stdout it is seen as an error has occurred. But in systemd both get a priority of 6 (info). Why does stderr not get a priority of 3 (err), or at least lower as stdout? Now when I want the things send to stderr I also get the things send to stdout. --