mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-06-16 11:03:26 +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
|
format='%(asctime)s - %(levelname)s - %(message)s', # Log format
|
||||||
level=logging.DEBUG, # Set log level to DEBUG
|
level=logging.DEBUG, # Set log level to DEBUG
|
||||||
handlers=[
|
handlers=[
|
||||||
logging.StreamHandler(), # Print logs to console
|
logging.StreamHandler() # Print logs to console
|
||||||
logging.FileHandler("app.log") # Log to a file as well
|
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
# Using the logger from lib.core.data
|
# Using the logger from lib.core.data (ensure no conflicts)
|
||||||
from lib.core.data import logger # Use the logger defined in the original code
|
from lib.core.data import logger
|
||||||
|
|
||||||
sys.dont_write_bytecode = True
|
sys.dont_write_bytecode = True
|
||||||
|
|
||||||
|
@ -98,9 +97,6 @@ def main():
|
||||||
dirtyPatches()
|
dirtyPatches()
|
||||||
resolveCrossReferences()
|
resolveCrossReferences()
|
||||||
|
|
||||||
# Set default logging level to debug
|
|
||||||
logger.setLevel(logging.DEBUG)
|
|
||||||
|
|
||||||
# Initialize paths
|
# Initialize paths
|
||||||
setPaths(modulePath())
|
setPaths(modulePath())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user