summaryrefslogtreecommitdiff
path: root/oslo_log/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'oslo_log/log.py')
-rw-r--r--oslo_log/log.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/oslo_log/log.py b/oslo_log/log.py
index afb73a2..b22fa97 100644
--- a/oslo_log/log.py
+++ b/oslo_log/log.py
@@ -37,7 +37,6 @@ try:
import syslog
except ImportError:
syslog = None
-import traceback
from oslo_config import cfg
from oslo_utils import importutils
@@ -191,9 +190,7 @@ class KeywordArgumentAdapter(BaseLoggerAdapter):
def _create_logging_excepthook(product_name):
def logging_excepthook(exc_type, value, tb):
extra = {'exc_info': (exc_type, value, tb)}
- getLogger(product_name).critical(
- "".join(traceback.format_exception_only(exc_type, value)),
- **extra)
+ getLogger(product_name).critical('Unhandled error', **extra)
return logging_excepthook