Error messages are logged twice in the command line

Bug #994855 reported by Thomas Herve
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyjuju
Fix Released
Undecided
Unassigned

Bug Description

For example, when using config set:

$ > juju set service key=invalid
Invalid value for key: 'invalid'
2012-05-04 14:50:14,712 ERROR Invalid value for key: 'invalid'

Related branches

Revision history for this message
Thomas Herve (therve) wrote :

The following diff fixes it:

=== modified file 'juju/control/command.py'
--- juju/control/command.py 2011-10-18 15:42:24 +0000
+++ juju/control/command.py 2012-05-04 21:53:29 +0000
@@ -62,8 +62,6 @@
                 stream.write(tracebackIO.getvalue())
                 self.options.log.error(tracebackIO.getvalue())

- # be a bit noisy on failure
- print >>stream, result.getErrorMessage()
             self.options.log.error(result.getErrorMessage())

             if self.exit_code == 0:

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

This was merged and released as part of 0.6

Changed in juju:
status: New → 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.