<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div style="" dir="auto">Hi Lennart,</div>
<div style="" dir="auto"><br>
</div>
<div style="" dir="auto">Thanks for your response! We will investigate  it further why this is happening in v253 for us.</div>
<div style="" dir="auto"><br>
</div>
<div style="" dir="auto">Sorry, for the confidentiality notice. Used the wrong signature. </div>
<div style="" dir="auto"><br>
</div>
<div style="" dir="auto">Best regards, </div>
<div style="" dir="auto">Christopher Wong </div>
<div id="ms-outlook-mobile-signature" dir="auto">
<div id="mail-editor-reference-message-container" dir="auto"><br>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" style="font-size: 11pt;"><strong>Från:</strong> Lennart Poettering <lennart@poettering.net><br>
<strong>Skickat:</strong> tisdag 20 juni 2023 16:41<br>
<strong>Till:</strong> Christopher Wong <Christopher.Wong@axis.com><br>
<strong>Kopia:</strong> systemd-devel@lists.freedesktop.org <systemd-devel@lists.freedesktop.org>; Felix Nilsson <Felix.Nilsson@axis.com><br>
<strong>Ämne:</strong> Re: [systemd-devel] systemctl logs to journal/kmsg intended?<br>
</div>
<br>
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On Di, 20.06.23 07:53, Christopher Wong (Christopher.Wong@axis.com) wrote:<br>
<br>
> Hi,<br>
><br>
> Is it intended that systemctl should send log messages to the<br>
> journal and kmsg with this patch? Because previously it was only<br>
> writing to console.<br>
<br>
Nope. log_setup() doesn't do this, unless $SYSTEMD_LOG_TARGET= is<br>
configured to do so, or journald is told to.<br>
<br>
> commit 158fdd5326a750fe01fcaa76ac4a56fe197cf1aa<br>
> Author: Yu Watanabe watanabe.yu+github@gmail.com<mailto:watanabe.yu+github@gmail.com><br>
> Date:   Thu Jul 7 16:38:54 2022 +0900<br>
><br>
>     systemctl: enable colorized logging by default<br>
><br>
> diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c<br>
> index 003d2f0c25..fa32c67a08 100644<br>
> --- a/src/systemctl/systemctl.c<br>
> +++ b/src/systemctl/systemctl.c<br>
> @@ -1113,8 +1113,7 @@ static int run(int argc, char *argv[]) {<br>
>          int r;<br>
>          setlocale(LC_ALL, "");<br>
> -        log_parse_environment();<br>
> -        log_open();<br>
> +        log_setup();<br>
><br>
><br>
> *****Email Confidentiality Notice***** This communication and any<br>
> attached files are confidential and are only intended for the use of<br>
> the individual or entity to which they are directed. They may<br>
> contain information that is privileged and exempt from disclosure<br>
> under applicable law. If an addressing or transmission error has<br>
> misdirected this email, please notify the sender and delete it from<br>
> your system. If you are not the intended recipient, you may not use,<br>
> disclose, distribute, copy, print, or rely on this email.<br>
<br>
You are posting this to a public mailing list, you know this? I<br>
presume you don't actually mean this confidentiality notice, do you?<br>
<br>
Lennart<br>
<br>
--<br>
Lennart Poettering, Berlin<br>
</div>
</span></font><br>
</div>
</div>
</body>
</html>