Skip to content

Commit

Permalink
Better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Huji authored Jan 12, 2025
1 parent ab3127a commit c3bba13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HujiBot/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def __init__(
self.dbname = dbname

def run(self):
print("--------------------")
print("Stats bot started ...")
print("Process number: %s" % self.sqlnum)
pywikibot.output("Process number: %s" % self.sqlnum)
Expand Down Expand Up @@ -162,7 +163,7 @@ def run(self):
except Exception as ex:
bot_end = time.time()
pywikibot.output(
"Start time: %s" % time.asctime(time.gmtime(bot_end))
"End time: %s" % time.asctime(time.gmtime(bot_end))
)
pywikibot.output("Maxtime was set to %d" % self.maxtime)
print("Query error or taking took too long. StatBot was stopped!")
Expand Down

0 comments on commit c3bba13

Please sign in to comment.