Skip to content

Commit

Permalink
use temp log file
Browse files Browse the repository at this point in the history
  • Loading branch information
cehbrecht committed Apr 26, 2024
1 parent ce0cce9 commit 71b87c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dipper/processes/wps_flood_forecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
# set up logger
import logging
LOGGER = logging.getLogger("PYWPS")
LOGNAME = LOGGER.name + '-debug.log'
# LOGNAME = LOGGER.name + '-debug.log'
LOGNAME = tempfile.mkstemp(".log", f"{LOGGER.name}-debug-")
filehandler_dbg = logging.FileHandler(LOGNAME, mode='w')
filehandler_dbg.setLevel('DEBUG')
#Create custom formats of the logrecord fit for both the logfile and the console
Expand Down

0 comments on commit 71b87c4

Please sign in to comment.