log lines don't show the model if logging-output=syslog

Bug #1971560 reported by Laurent Sesquès
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
Yang Kelvin Liu

Bug Description

When using logging-output=syslog, logs will go to syslog but no tag will be added to determine which model is relevant for them:

May 4 09:56:28 juju-4da59b22-9710-4e69-840a-be49ee864a97-machine-0 juju.daemon[19880]: 2022-05-04 09:56:26 machine-5 juju.worker.deployer checking unit "telegraf/4"
May 4 09:56:28 juju-4da59b22-9710-4e69-840a-be49ee864a97-machine-0 juju.daemon[19880]: 2022-05-04 09:56:27 machine-5 juju.worker.machiner "machine-5" started

It should indicate the model uuid (or the model name).

Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.9.30
importance: Undecided → High
status: New → Triaged
Changed in juju:
assignee: nobody → Yang Kelvin Liu (kelvin.liu)
status: Triaged → In Progress
Revision history for this message
Joseph Phillips (manadart) wrote :

There's a precedent for showing the first (I think) 6-8 chars of the UUID for readability. This might be the way to go.

Revision history for this message
Yang Kelvin Liu (kelvin.liu) wrote :

yeah, that's what we should do.

https://github.com/juju/juju/pull/14023

Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
milestone: 2.9.30 → 2.9.31
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.