Better logging. Errors without stacktrace are now printed to stderr
This commit is contained in:
parent
88b4d34e1a
commit
e4d2c98fb5
4 changed files with 37 additions and 13 deletions
|
|
@ -36,6 +36,7 @@ def create_dev(script, _id, dev, ip=None):
|
|||
try:
|
||||
output = sp.check_output(command, stderr=sp.PIPE)
|
||||
except Exception as e:
|
||||
logger.exception('Creation of interface %s failed.', dev)
|
||||
print(e)
|
||||
return None
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue