Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,13 +5,12 @@ import json
|
|
5 |
import logging
|
6 |
import os
|
7 |
|
8 |
-
# Set up logging to
|
9 |
logging.basicConfig(
|
10 |
level=logging.DEBUG,
|
11 |
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
12 |
handlers=[
|
13 |
-
logging.StreamHandler()
|
14 |
-
logging.FileHandler("/app/app.log") # Log to a file
|
15 |
]
|
16 |
)
|
17 |
logger = logging.getLogger(__name__)
|
|
|
5 |
import logging
|
6 |
import os
|
7 |
|
8 |
+
# Set up logging to stdout only
|
9 |
logging.basicConfig(
|
10 |
level=logging.DEBUG,
|
11 |
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
12 |
handlers=[
|
13 |
+
logging.StreamHandler() # Log to stdout
|
|
|
14 |
]
|
15 |
)
|
16 |
logger = logging.getLogger(__name__)
|