diff --git a/edexOsgi/com.raytheon.edex.plugin.gfe/utility/edex_static/base/gfe/isc/iscMosaic.py b/edexOsgi/com.raytheon.edex.plugin.gfe/utility/edex_static/base/gfe/isc/iscMosaic.py index 0a647dd556..402fdd7032 100644 --- a/edexOsgi/com.raytheon.edex.plugin.gfe/utility/edex_static/base/gfe/isc/iscMosaic.py +++ b/edexOsgi/com.raytheon.edex.plugin.gfe/utility/edex_static/base/gfe/isc/iscMosaic.py @@ -86,6 +86,7 @@ from com.raytheon.uf.edex.database.cluster import ClusterTask # Changed WECache to limit the number of cached grids kept in memory # 01/09/14 16952 randerso Fix regression made in #2517 which caused errors with overlapping grids # 02/04/14 17042 ryu Check in changes for randerso. +# 04/11/2014 17242 David Gillingham (code checked in by zhao) # BATCH_DELAY = 0.0 @@ -908,8 +909,7 @@ class IscMosaic: destGrid, history = grid self.__dbGrid = (destGrid, history, tr) else: - self.logProblem("Unable to access grid for ", - self.__printTR(tr), "for ", self.__parmName) + logger.error("Unable to access grid for "+self.__printTR(tr) +" for " + self.__parmName) return None return (self.__dbGrid[0], self.__dbGrid[1]) diff --git a/edexOsgi/com.raytheon.edex.plugin.gfe/utility/edex_static/base/gfe/isc/iscUtil.py b/edexOsgi/com.raytheon.edex.plugin.gfe/utility/edex_static/base/gfe/isc/iscUtil.py index 4a72410c98..2a22629c5a 100644 --- a/edexOsgi/com.raytheon.edex.plugin.gfe/utility/edex_static/base/gfe/isc/iscUtil.py +++ b/edexOsgi/com.raytheon.edex.plugin.gfe/utility/edex_static/base/gfe/isc/iscUtil.py @@ -51,6 +51,7 @@ from com.raytheon.uf.common.localization import LocalizationContext_Localization # methods where it's needed. # 11/07/13 2517 randerso Allow getLogger to override logLevel # 01/22/14/ 2504 randerso Added hostname to log path +# 04/10/2014 17241 David Gillingham (code checked in by zhao) # # @@ -297,8 +298,12 @@ def getLogger(scriptName, logName=None, logLevel=logging.INFO): logFile = os.path.join(logPath, logName) - if not os.path.exists(logPath): + try: os.makedirs(logPath) + except OSError as e: + import errno + if e.errno != errno.EEXIST: + raise e theLog = logging.getLogger(scriptName) theLog.setLevel(logLevel)