try
This commit is contained in:
+8
-7
@@ -1,5 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
import logging
|
||||
|
||||
logging.basicConfig(
|
||||
filename='/home/shane/foodie_automator/logs/check_x_capacity.log',
|
||||
level=logging.DEBUG,
|
||||
format='%(asctime)s - %(levelname)s - %(message)s'
|
||||
)
|
||||
logging.info("TEST: Logging is configured and working.")
|
||||
|
||||
from datetime import datetime, timezone
|
||||
from foodie_utils import (
|
||||
AUTHORS, check_author_rate_limit, load_json_file,
|
||||
@@ -14,13 +22,6 @@ from email.mime.text import MIMEText
|
||||
from email.mime.multipart import MIMEMultipart
|
||||
from foodie_config import EMAIL_CONFIG
|
||||
|
||||
# Configure logging
|
||||
logging.basicConfig(
|
||||
level=logging.DEBUG,
|
||||
format='%(asctime)s - %(levelname)s - %(message)s'
|
||||
)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# File to track sent notifications
|
||||
NOTIFICATION_FILE = '/home/shane/foodie_automator/notification_tracking.json'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user