PHP 7.4.33
Preview: exceptions.py Size: 568 B
/lib/python3.6/site-packages/tuned/exceptions.py

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)

Directory Contents

Dirs: 12 × Files: 6

Name Size Perms Modified Actions
admin DIR
- drwxr-xr-x 2025-03-13 05:57:38
Edit Download
daemon DIR
- drwxr-xr-x 2025-03-13 05:57:38
Edit Download
exports DIR
- drwxr-xr-x 2025-03-13 05:57:38
Edit Download
hardware DIR
- drwxr-xr-x 2025-03-13 05:57:38
Edit Download
monitors DIR
- drwxr-xr-x 2025-03-13 05:57:38
Edit Download
plugins DIR
- drwxr-xr-x 2025-03-13 05:57:38
Edit Download
ppd DIR
- drwxr-xr-x 2025-03-13 05:57:38
Edit Download
profiles DIR
- drwxr-xr-x 2025-03-13 05:57:38
Edit Download
storage DIR
- drwxr-xr-x 2025-03-13 05:57:38
Edit Download
units DIR
- drwxr-xr-x 2025-03-13 05:57:38
Edit Download
utils DIR
- drwxr-xr-x 2025-03-13 05:57:38
Edit Download
- drwxr-xr-x 2025-03-13 05:57:38
Edit Download
7.84 KB lrw-r--r-- 2025-03-11 07:42:24
Edit Download
568 B lrw-r--r-- 2024-02-22 12:23:28
Edit Download
3.75 KB lrw-r--r-- 2024-02-22 12:23:28
Edit Download
335 B lrw-r--r-- 2024-02-22 12:23:28
Edit Download
171 B lrw-r--r-- 2024-02-22 12:23:28
Edit Download
953 B lrw-r--r-- 2024-02-22 12:23:28
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).