++logs, +import sys at top level
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
parent
aa81486fe9
commit
5e20ba5a13
2 changed files with 25 additions and 1 deletions
|
@ -200,11 +200,13 @@ def emulator():
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
# Sys is needed for sys.exit()
|
||||||
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
|
||||||
|
|
||||||
cdistpythonversion = '3.2'
|
cdistpythonversion = '3.2'
|
||||||
if sys.version < cdistpythonversion:
|
if sys.version < cdistpythonversion:
|
||||||
|
|
|
@ -24,3 +24,25 @@ Traceback (most recent call last):
|
||||||
"""
|
"""
|
||||||
KeyboardInterrupt
|
KeyboardInterrupt
|
||||||
^C% [12:19] brief:cdist%
|
^C% [12:19] brief:cdist%
|
||||||
|
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
[13:50] brief:cdist% ./bin/cdist config -vp monitoring02
|
||||||
|
INFO: monitoring02: Running global explorers
|
||||||
|
INFO: monitoring02: Running initial manifest /home/users/nico/privat/firmen/local.ch/vcs/cdist/conf/manifest
|
||||||
|
INFO: monitoring02: Running object manifests and type explorers
|
||||||
|
INFO: monitoring02: Running manifest and explorers for __localch_shinken/singleton
|
||||||
|
^CTraceback (most recent call last):
|
||||||
|
File "/usr/lib/python3.2/site.py", line 58, in <module>
|
||||||
|
import traceback
|
||||||
|
File "/usr/lib/python3.2/traceback.py", line 3, in <module>
|
||||||
|
import linecache
|
||||||
|
File "/usr/lib/python3.2/linecache.py", line 10, in <module>
|
||||||
|
import tokenize
|
||||||
|
File "/usr/lib/python3.2/tokenize.py", line 49, in <module>
|
||||||
|
class TokenInfo(collections.namedtuple('TokenInfo', 'type string start end line')):
|
||||||
|
File "/usr/lib/python3.2/collections.py", line 363, in namedtuple
|
||||||
|
exec(class_definition, namespace)
|
||||||
|
File "<string>", line 1, in <module>
|
||||||
|
KeyboardInterrupt
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue