Hello,
Since we upgraded an instance of Jenkins to 2.346.1 and subsequently to 2.346.2, we are only getting a couple of log lines to JENKINS_LOG (which we redirect to the pre-systemd location) despite Jenkins otherwise working fine,
>tail -f /var/log/jenkins/jenkins.log
Running from: /usr/share/java/jenkins.war
[07/18/22 17:44:17] SSH Launch of <agent_name> on <machine> completed in 13,472 ms
All the other logs seem to go into /var/log/messages. Contents of "systemctl edit jenkins" include,
[Service]
<...>
Environment="JENKINS_LOG=/var/log/jenkins/jenkins.log"
I am not using %L since the machine is CentOS 7, where this expansion does not work right. That said, the above config worked fine in older version of stable.
Running PS, I can see that --logfile is passed to Jenkins. Plus it does write those 2 lines to the file. But why isn't it writing the rest there?
Another user reported this
here, but were redirected the mailing list. I could not find a record of that question here, but perhaps I missed it.
Than you,
Lev