⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.12
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
landscape
/
lib
/
View File Name :
log.py
from __future__ import absolute_import import logging def log_failure(failure, msg=None, logger=None): """Log a L{twisted.python.failure.Failure} to the Python L{logging} module. The failure should be formatted as a regular exception, but a traceback may not be available. If C{msg} is passed, it will included before the traceback. """ if logger is None: logger = logging logger.error(msg, exc_info=(failure.type, failure.value, failure.tb))