Skip to content

Commit 1d41b38

Browse files
committed
Add logger to all calls of run_with_inturrupt
1 parent f28a591 commit 1d41b38

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
@@ -828,7 +828,8 @@ async def _watcher(stop_event):
828828
try:
829829
results = await utils.run_with_interrupt(
830830
watcher.Next(),
831-
stop_event)
831+
stop_event,
832+
log=log)
832833
except JujuAPIError as e:
833834
if 'watcher was stopped' not in str(e):
834835
raise

juju/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,8 @@ async def _all_watcher():
11151115
try:
11161116
results = await utils.run_with_interrupt(
11171117
allwatcher.Next(),
1118-
self._watch_stopping)
1118+
self._watch_stopping,
1119+
log=log)
11191120
except JujuAPIError as e:
11201121
if 'watcher was stopped' not in str(e):
11211122
raise

0 commit comments

Comments
 (0)