Skip to content

Commit d13bc8e

Browse files
committed
Add logger to all calls of run_with_inturrupt
1 parent 671a936 commit d13bc8e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

juju/controller.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,8 @@ async def _watcher(stop_event):
854854
try:
855855
results = await utils.run_with_interrupt(
856856
watcher.Next(),
857-
stop_event)
857+
stop_event,
858+
log=log)
858859
except JujuAPIError as e:
859860
if 'watcher was stopped' not in str(e):
860861
raise

juju/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,8 @@ async def _all_watcher():
12041204
try:
12051205
results = await utils.run_with_interrupt(
12061206
allwatcher.Next(),
1207-
self._watch_stopping)
1207+
self._watch_stopping,
1208+
log=log)
12081209
except JujuAPIError as e:
12091210
if 'watcher was stopped' not in str(e):
12101211
raise

0 commit comments

Comments
 (0)