Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c9c520a

Browse files
committed
no need to repeat the debug message each time this function is called
1 parent 646df37 commit c9c520a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/generic/misc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from lib.core.common import ntToPosixSlashes
1616
from lib.core.common import posixToNtSlashes
1717
from lib.core.common import readInput
18+
from lib.core.common import singleTimeDebugMessage
1819
from lib.core.common import unArrayizeValue
1920
from lib.core.data import conf
2021
from lib.core.data import kb
@@ -69,8 +70,7 @@ def getRemoteTempPath(self):
6970
conf.tmpPath = normalizePath(conf.tmpPath)
7071
conf.tmpPath = ntToPosixSlashes(conf.tmpPath)
7172

72-
debugMsg = "going to use %s as temporary files directory" % conf.tmpPath
73-
logger.debug(debugMsg)
73+
singleTimeDebugMessage("going to use %s as temporary files directory" % conf.tmpPath)
7474

7575
hashDBWrite(HASHDB_KEYS.CONF_TMP_PATH, conf.tmpPath)
7676

0 commit comments

Comments
 (0)