diff --git a/dipper/processes/wps_flood_forecast.py b/dipper/processes/wps_flood_forecast.py index d6545fc..0987c9a 100755 --- a/dipper/processes/wps_flood_forecast.py +++ b/dipper/processes/wps_flood_forecast.py @@ -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