From 71b87c4672d8ab75b9f225f93c2a2f02a3c708da Mon Sep 17 00:00:00 2001 From: Pingu Carsti Date: Fri, 26 Apr 2024 17:13:35 +0200 Subject: [PATCH] use temp log file --- dipper/processes/wps_flood_forecast.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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