We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edd7190 commit 23130edCopy full SHA for 23130ed
rsnapshot-once.py
@@ -53,13 +53,13 @@
53
def logf(logstring,logfile=None,prefix=""):
54
55
if logfile:
56
- logstring = "Writing to logfile: " + logstring
+ logstring = prefix + logstring
57
try:
58
with open(logfile,'a') as logfile:
59
- logfile.write(prefix + logstring + "\n")
+ logfile.write(logstring + "\n")
60
except FileNotFoundError:
61
logging.critical("Specified logfile does not exist")
62
- logging.info(logstring)
+ logging.info("Writing to logfile: "+logstring)
63
return True
64
65
def logft(logstring,logfile=None,prefix=""):
0 commit comments