forked from ungleich-public/cdist
Fix getting loggers.
This commit is contained in:
parent
6acf6f64dc
commit
0c57b3083e
3 changed files with 10 additions and 16 deletions
|
|
@ -69,8 +69,6 @@ if __name__ == "__main__":
|
|||
import re
|
||||
import os
|
||||
|
||||
log = logging.getLogger("cdist")
|
||||
|
||||
if re.match("__", os.path.basename(sys.argv[0])):
|
||||
import cdist.emulator
|
||||
emulator = cdist.emulator.Emulator(sys.argv)
|
||||
|
|
@ -82,6 +80,7 @@ if __name__ == "__main__":
|
|||
exit_code = 2
|
||||
|
||||
except cdist.Error as e:
|
||||
log = logging.getLogger("cdist")
|
||||
log.error(e)
|
||||
exit_code = 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue