Skip to content

Commit

Permalink
abuseipdb-reporter.py 0.5.1
Browse files Browse the repository at this point in the history
- assign DEBUG_ALL_LOG_FILE = '/var/log/abuseipdb-detailed.log' for logging
  • Loading branch information
centminmod committed Sep 18, 2023
1 parent a2967ca commit 60052f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions abuseipdb-reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
import fcntl
from urllib.parse import quote

VERSION = "0.5.0"
VERSION = "0.5.1"
# Set the DEBUG and LOG_API_REQUEST variables here (True or False)
# DEBUG doesn't send to AbuseIPDB. Only logs to file
# LOG_API_REQUEST, when True, logs API requests to file
Expand All @@ -72,6 +72,7 @@
DEFAULT_JSONLOG_FILE = '/var/log/abuseipdb-reporter-debug-json.log'
DEFAULT_APILOG_FILE = '/var/log/abuseipdb-reporter-api.log'
DEFAULT_JSONAPILOG_FILE = '/var/log/abuseipdb-reporter-api-json.log'
DEBUG_ALL_LOG_FILE = '/var/log/abuseipdb-detailed.log'

# Local IP submission cache
CACHE_FILE = "ip_cache.json"
Expand Down Expand Up @@ -115,7 +116,7 @@
LF_POP3D_CATEGORY = '18'

log_formatter = logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')
log_file = "/var/log/abuseipdb-detailed.log"
log_file = DEBUG_ALL_LOG_FILE

# Set up the logger
logger = logging.getLogger('AbuseIPDBReporter')
Expand Down

0 comments on commit 60052f4

Please sign in to comment.