diff options
author | nico <nico@magicbroccoli.de> | 2018-11-07 00:49:32 +0100 |
---|---|---|
committer | nico <nico@magicbroccoli.de> | 2018-11-07 00:49:32 +0100 |
commit | 146a4efc7f9bb97caaa97ddd02f1ce244cb4deb0 (patch) | |
tree | 19bb62f443e51cd0af421fdd398d2c53af117d80 | |
parent | d7fc664d3be4634a693a24fa98ff3f15d2c97c41 (diff) |
small fixup
+ added timestamp to logging output
* finished up HandleError output
-rwxr-xr-x | common/misc.py | 2 | ||||
-rw-r--r-- | main.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/misc.py b/common/misc.py index 1350a2a..e0df882 100755 --- a/common/misc.py +++ b/common/misc.py @@ -64,6 +64,6 @@ class HandleError: def report(self): # return the formatted result string to the user - text = "%s, %s resulted in: %s" % (self.text, self.key, self.condition) + text = "%s. %s %s resulted in: %s" % (self.text, self.key, self.target, self.condition) return text @@ -176,7 +176,7 @@ if __name__ == '__main__': args = parser.parse_args() # logging - logging.basicConfig(filename=args.logfile, level=logging.INFO, format='%(levelname)-8s %(message)s') + logging.basicConfig(filename=args.logfile, level=logging.INFO, format='%(levelname)s: %(asctime)s: %(message)s') logger = logging.getLogger(__name__) # configfile |