FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-libjuju/examples/debug-log.py at master · Maxcode123/python-libjuju · GitHub
Maxcode123
python-libjuju
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-libjuju
/
examples
/
debug-log.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (27 loc) · 841 Bytes
Breadcrumbs
python-libjuju
/
examples
/
debug-log.py
Copy path
File metadata and controls
36 lines (27 loc) · 841 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"""
This example demonstrate how debug-log works
"""
from
juju
import
jasyncio
from
juju
.
model
import
Model
async
def
main
():
model
=
Model
()
await
model
.
connect_current
()
await
model
.
debug_log
(
# limit=15,
# exclude_module=['juju.worker.logforwarder'],
# include_module=['juju.worker.dependency'], # <- only log dependency module
# include=['machine-0'], # <- only log from machine-0
# exclude=['machine-0'], # <- no log from machine-0
# level='WARNING',
)
application
=
await
model
.
deploy
(
'ch:ubuntu'
,
application_name
=
'ubuntu'
,
series
=
'trusty'
,
channel
=
'stable'
,
)
await
model
.
wait_for_idle
(
status
=
'active'
)
await
application
.
remove
()
await
model
.
disconnect
()
if
__name__
==
'__main__'
:
jasyncio
.
run
(
main
())
Back
|
FazBrowse Home
|
New Git URL