From 8f222ff95734d539fe28597ddd0f2a4b97868463 Mon Sep 17 00:00:00 2001 From: MMaker Date: Thu, 27 Feb 2025 11:01:48 -0500 Subject: [PATCH] Cleaner log format --- app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 437fff7..10f99c2 100644 --- a/app.py +++ b/app.py @@ -18,7 +18,11 @@ import urllib.parse from dotenv import load_dotenv load_dotenv() -logging.basicConfig(level=logging.INFO) +logging.basicConfig( + level=logging.INFO, + format='%(asctime)s - %(levelname)s - %(message)s', + datefmt='%Y-%m-%d %H:%M:%S' +) logger = logging.getLogger(__name__) app = Flask(__name__)