Skip to content

Commit

Permalink
update datefmt
Browse files Browse the repository at this point in the history
  • Loading branch information
BjarkeM committed Apr 23, 2024
1 parent 972aa14 commit 805679d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import redis.asyncio as redis
import json
from quart import Quart, request, jsonify
from quart.logging import default_handler

# Development Configurations
DEV_CONFIG = {
Expand Down Expand Up @@ -57,7 +56,7 @@ def format(self, record):

# Setup logging
log_format = "%(levelname)s %(asctime)s %(message)s"
formatter = ColoredFormatter(log_format)
formatter = ColoredFormatter(log_format, datefmt='%d/%m/%Y %H:%M:%S')

console_handler = logging.StreamHandler()
console_handler.setLevel(logging.INFO)
Expand All @@ -72,7 +71,8 @@ def format(self, record):

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
logger.addHandler(console_handler)

logging.basicConfig(level=logging.INFO, handlers=[console_handler])

app = Quart(__name__)
current_token_idx = 0
Expand Down

0 comments on commit 805679d

Please sign in to comment.