mirror of
https://github.com/mightyBroccoli/xmpp-chatbot.git
synced 2024-12-04 22:33:36 +01:00
small fixup
+ added timestamp to logging output * finished up HandleError output
This commit is contained in:
parent
d7fc664d3b
commit
146a4efc7f
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
2
main.py
2
main.py
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue