hook context id overly verbose

Bug #1705405 reported by John A Meinel
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
John A Meinel
2.2
Fix Released
High
John A Meinel

Bug Description

Every time a charm invokes a hook tool, we drop cruft at DEBUG level:
unit-easyrsa-0: 12:16:36 DEBUG worker.uniter.jujuc hook context id "easyrsa/0-update-status-9028046492320369901"; dir "/var/lib/juju/agents/unit-easyrsa-0/charm"
unit-easyrsa-0: 12:16:36 DEBUG worker.uniter.jujuc hook context id "easyrsa/0-update-status-9028046492320369901"; dir "/var/lib/juju/agents/unit-easyrsa-0/charm"
unit-easyrsa-0: 12:16:36 DEBUG worker.uniter.jujuc hook context id "easyrsa/0-update-status-9028046492320369901"; dir "/var/lib/juju/agents/unit-easyrsa-0/charm"
unit-easyrsa-0: 12:16:36 DEBUG worker.uniter.jujuc hook context id "easyrsa/0-update-status-9028046492320369901"; dir "/var/lib/juju/agents/unit-easyrsa-0/charm"
unit-easyrsa-0: 12:16:37 DEBUG worker.uniter.jujuc hook context id "easyrsa/0-update-status-9028046492320369901"; dir "/var/lib/juju/agents/unit-easyrsa-0/charm"

Note that this isn't the interesting bit at all.
    logger.Tracef("running hook tool %q %q", req.CommandName, req.Args)
    logger.Tracef("running hook tool %q", req.CommandName)
    logger.Debugf("hook context id %q; dir %q", req.ContextId, req.Dir)

It seems we dropped the interesting ones to Trace, but then left the uninteresting one at Debug.

Tags: logging
John A Meinel (jameinel)
Changed in juju:
milestone: none → 2.3-alpha1
Revision history for this message
John A Meinel (jameinel) wrote :
Changed in juju:
milestone: 2.3-beta1 → 2.3-beta2
Revision history for this message
Anastasia (anastasia-macmood) wrote :

I suspect that the fix for this has been already ported into 2.3 (develop) as part of one of the larger merges we have undertaken recently.

Changed in juju:
status: Triaged → Fix Committed
Changed in juju:
milestone: 2.3-beta2 → 2.3-beta1
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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