mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-04-05 09:44:16 +03:00
Update sqlmapapi.py
This commit is contained in:
parent
74300e4b89
commit
3839c78d2a
10
sqlmapapi.py
10
sqlmapapi.py
|
@ -15,13 +15,12 @@ logging.basicConfig(
|
|||
format='%(asctime)s - %(levelname)s - %(message)s', # Log format
|
||||
level=logging.DEBUG, # Set log level to DEBUG
|
||||
handlers=[
|
||||
logging.StreamHandler(), # Print logs to console
|
||||
logging.FileHandler("app.log") # Log to a file as well
|
||||
logging.StreamHandler() # Print logs to console
|
||||
]
|
||||
)
|
||||
|
||||
# Using the logger from lib.core.data
|
||||
from lib.core.data import logger # Use the logger defined in the original code
|
||||
# Using the logger from lib.core.data (ensure no conflicts)
|
||||
from lib.core.data import logger
|
||||
|
||||
sys.dont_write_bytecode = True
|
||||
|
||||
|
@ -98,9 +97,6 @@ def main():
|
|||
dirtyPatches()
|
||||
resolveCrossReferences()
|
||||
|
||||
# Set default logging level to debug
|
||||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
# Initialize paths
|
||||
setPaths(modulePath())
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user