Skip to content

Commit 6fd9ab6

Browse files
log with timestamps
1 parent 72ceb48 commit 6fd9ab6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
from utils import generate
1717

1818
# Configure logging
19-
logging.basicConfig(level=logging.INFO)
19+
logging.basicConfig(
20+
level=logging.INFO,
21+
format="%(asctime)s %(levelname)s %(message)s",
22+
datefmt="%Y-%m-%d %H:%M:%S"
23+
)
2024
logger = logging.getLogger(__name__)
2125

2226
analytics.write_key = os.getenv('SEGMENT_WRITE_KEY')

0 commit comments

Comments
 (0)