From c9c520a325a101d60f9641f8cb6ae55e99859cbe Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Thu, 14 Feb 2013 13:18:15 +0000 Subject: [PATCH] no need to repeat the debug message each time this function is called --- plugins/generic/misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/generic/misc.py b/plugins/generic/misc.py index 05131740e..df72e771e 100644 --- a/plugins/generic/misc.py +++ b/plugins/generic/misc.py @@ -15,6 +15,7 @@ from lib.core.common import normalizePath from lib.core.common import ntToPosixSlashes from lib.core.common import posixToNtSlashes from lib.core.common import readInput +from lib.core.common import singleTimeDebugMessage from lib.core.common import unArrayizeValue from lib.core.data import conf from lib.core.data import kb @@ -69,8 +70,7 @@ class Miscellaneous: conf.tmpPath = normalizePath(conf.tmpPath) conf.tmpPath = ntToPosixSlashes(conf.tmpPath) - debugMsg = "going to use %s as temporary files directory" % conf.tmpPath - logger.debug(debugMsg) + singleTimeDebugMessage("going to use %s as temporary files directory" % conf.tmpPath) hashDBWrite(HASHDB_KEYS.CONF_TMP_PATH, conf.tmpPath)