import tuned.logs import sys import traceback exception_logger = tuned.logs.get() class TunedException(Exception): """ """ def log(self, logger = None): if logger is None: logger = exception_logger logger.error(str(self)) self._log_trace(logger) def _log_trace(self, logger): (exc_type, exc_value, exc_traceback) = sys.exc_info() if exc_value != self: logger.debug("stack trace is no longer available") else: exception_info = "".join(traceback.format_exception(exc_type, exc_value, exc_traceback)).rstrip() logger.debug(exception_info)
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
admin | Folder | 0755 |
|
|
daemon | Folder | 0755 |
|
|
exports | Folder | 0755 |
|
|
hardware | Folder | 0755 |
|
|
monitors | Folder | 0755 |
|
|
plugins | Folder | 0755 |
|
|
ppd | Folder | 0755 |
|
|
profiles | Folder | 0755 |
|
|
storage | Folder | 0755 |
|
|
units | Folder | 0755 |
|
|
utils | Folder | 0755 |
|
|
__init__.py | File | 953 B | 0644 |
|
consts.py | File | 7.84 KB | 0644 |
|
exceptions.py | File | 568 B | 0644 |
|
logs.py | File | 3.75 KB | 0644 |
|
patterns.py | File | 335 B | 0644 |
|
version.py | File | 171 B | 0644 |
|