Skip to content

Commit

Permalink
++logs, +import sys at top level
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Schottelius <[email protected]>
  • Loading branch information
Nico Schottelius committed Feb 17, 2012
1 parent aa81486 commit 5e20ba5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/cdist
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,13 @@ def emulator():
sys.exit(1)

if __name__ == "__main__":
# Sys is needed for sys.exit()
import sys

try:
import logging
import os
import re
import sys

cdistpythonversion = '3.2'
if sys.version < cdistpythonversion:
Expand Down
22 changes: 22 additions & 0 deletions doc/dev/logs/2012-02-17.keyboardirq
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,25 @@ Traceback (most recent call last):
"""
KeyboardInterrupt
^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

0 comments on commit 5e20ba5

Please sign in to comment.