default logging level for agents uses a hack

Bug #1237731 reported by Ian Booth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Tim Penhey

Bug Description

We want agents to log using level = DEBUG by default. This default is to be used only if the user has not specified a level using a logging-config value or an environment variable, nor have they change loggo's default config. We currently use a string comparison to see if loggo's config has been changed to something other than the default. This needs to be done using something better.

yuck:

loggoConfig := loggo.LoggerInfo()
if loggoConfig != "<root>=WARNING" {
.....
}

Tags: tech-debt

Related branches

Tim Penhey (thumper)
Changed in juju-core:
status: Triaged → In Progress
assignee: nobody → Tim Penhey (thumper)
milestone: none → 1.17.1
Revision history for this message
Martin Packman (gz) wrote :

Fixed in the associated branch.

Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
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.