DescriptionAdd and use a log_hook context manager.
Replace the current calls to log_entry and log_exit in the __main__ of
the hooks with a log_hook context manager, simplifying the code a bit.
Avoiding log_entry and log_exit also temporarily works around a problem
they have with the juju-core handling of strings starting with "--" in
juju-log.
https://code.launchpad.net/~frankban/charms/precise/juju-gui/bug-1132905-log-hook/+merge/150413
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 1
Patch Set 2 : Add and use a log_hook context manager. #
MessagesTotal messages: 3
|