summaryrefslogtreecommitdiff
path: root/cloudinit/signal_handler.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/signal_handler.py')
-rw-r--r--cloudinit/signal_handler.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/cloudinit/signal_handler.py b/cloudinit/signal_handler.py
index 34e075a2..40b0c94c 100644
--- a/cloudinit/signal_handler.py
+++ b/cloudinit/signal_handler.py
@@ -54,17 +54,6 @@ def _pprint_frame(frame, depth, max_depth, contents):
def _handle_exit(signum, frame):
(msg, rc) = EXIT_FOR[signum]
- # Reset logging so that only the basic logging
- # is active since the state of syslog or other
- # logging processes is unknown if we are being
- # signaled by a reboot process which is external and
- # killing other processes while this process is being
- # finished off...
- try:
- logging.resetLogging()
- logging.setupBasicLogging()
- except:
- pass
msg = msg % ({'version': vr.version()})
contents = StringIO()
contents.write("%s\n" % (msg))