geethareddy commited on
Commit
fdb1a6b
·
verified ·
1 Parent(s): 7497ce8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -5,13 +5,12 @@ import json
5
  import logging
6
  import os
7
 
8
- # Set up logging to both stdout and a file
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
- 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__)