Skip to content

Commit

Permalink
Always print the stacktrace if unforeseen exception in deploy (NixOS#638
Browse files Browse the repository at this point in the history
)

“This thread shouldn’t throw an exception”, but it sometimes does, and when it
does it should print the whole stacktrace for debugging, not just a cute
message, since `debug` is an alias of `False` (line 38).
  • Loading branch information
Profpatsch authored and domenkozar committed Apr 28, 2017
1 parent 07f7a22 commit 7fc0377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixops/deployment.py
Expand Up @@ -726,7 +726,7 @@ def worker(m):
# This thread shouldn't throw an exception because
# that will cause NixOps to exit and interrupt
# activation on the other machines.
m.logger.error(traceback.format_exc() if debug else str(e))
m.logger.error(traceback.format_exc())
return m.name
return None

Expand Down

0 comments on commit 7fc0377

Please sign in to comment.