projects
/
osm
/
N2VC.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixes for latest juju-2 beta
[osm/N2VC.git]
/
examples
/
unitrun.py
diff --git
a/examples/unitrun.py
b/examples/unitrun.py
index
6dbb1b6
..
88c43bf
100644
(file)
--- a/
examples/unitrun.py
+++ b/
examples/unitrun.py
@@
-4,6
+4,7
@@
Run this one against a model that has at least one unit deployed.
"""
import asyncio
import functools
+import logging
from juju.model import Model
from juju.unit import Unit
@@
-44,4
+45,5
@@
async def watch_model():
model.add_observer(on_model_change)
await model.watch()
+logging.basicConfig(level=logging.INFO)
loop.run_until_complete(watch_model())