Commit a7557167 authored by thomas.forbriger's avatar thomas.forbriger
Browse files

[TASK]: rephrase integrity status message for output

parent 17101e77
......@@ -16,6 +16,7 @@
# tool successfully. The logging mechanism is working as
# well.
# 01/03/2013 V1.1 improve error handling
# 01/12/2021 V1.1a thof: rephrase status message
#
# ============================================================================
#
......@@ -70,7 +71,7 @@ import operator
import csbacklog
import csbackErrorCodes as eCodes
__version__ = "V1.1"
__version__ = "V1.1a"
__license__ = "GPLv2+"
__author__ = "Daniel Armbruster"
__copyright__ = "Copyright (c) 2012 by Daniel Armbruster"
......@@ -800,7 +801,7 @@ def main(argv=None):
# remove base pathes passed in XML configuration file to compare file
# pathes correctly
logger.getLogger().info("["+streams[key].dict['ID']+ \
"]: Searching for data files which have no integrity anymore ...")
"]: Searching for data files which lost their integrity...")
remoteFilesAvail = set( \
l.filePath.replace(streams[key].dict['seedlinkTarget'], \
streams[key].dict['seedlinkSrc']) for l in hostCsFile)
......
......@@ -43,6 +43,7 @@
# 19/03/2013 V1.2 avoid creating excluded directories
# 09/09/2013 V1.2.1 warning log level for files which have no integrity
# anymore
# 01/12/2021 V1.2.2 thof: rephrase status message
#
# ============================================================================
#
......@@ -59,7 +60,7 @@ import csbackErrorCodes as eCodes
import csbacklog
import pidlock
__version__ = "V1.2.1"
__version__ = "V1.2.2"
__license__ = "GPLv2+"
__author__ = "Daniel Armbruster"
__copyright__ = "Copyright (c) 2013 by Daniel Armbruster"
......@@ -349,7 +350,7 @@ def main(argv=None):
"Check of file '{0}' was successful.".format(dataFilePath))
else:
logger.getLogger().warning( \
"File '{0}' has no integrity anymore and won't be copied.". \
"File '{0}' lost its integrity and won't be copied.". \
format(dataFilePath))
except csf.CsFileError as err:
if err.errorCode == eCodes.CSFILE_NoEntryAvail:
......
......@@ -55,6 +55,7 @@
# V0.6.7 (thof) capture problem with whitespace in file names
# which results in not accepted hash types
# 02/08/2019 V0.6.8 (thof) do not write newline to log entries
# 01/12/2021 V0.6.8a thof: rephrase status message
#
# =============================================================================
""" CsFile module to handle checksumfiles. """
......@@ -72,7 +73,7 @@ from datetime import date
import csbacklog
import csbackErrorCodes as eCodes
__version__ = "V0.6.8"
__version__ = "V0.6.8a"
__license__ = "GPLv2+"
__author__ = "Daniel Armbruster"
__copyright__ = "Copyright (c) 2012 by Daniel Armbruster"
......@@ -387,7 +388,7 @@ class CsFile:
resultLogger.getLogger().info(logoutput, csline.filename)
self.logger.debug(logoutput, path)
else:
logoutput = "File '%s' has no integrity anymore."
logoutput = "File '%s' lost its integrity."
resultLogger.getLogger().critical(logoutput, csline.filename)
self.logger.critical(logoutput, path)
except CsFileError:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment