Update from deprecated utcnow() to now()
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ topic_pattern = re.compile(TOPIC_REGEX)
|
||||
def log(level, msg):
|
||||
if level == "." and not DEBUG_LOG:
|
||||
return
|
||||
ts = datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S UTC")
|
||||
ts = datetime.now().strftime("%Y-%m-%d %H:%M:%S UTC")
|
||||
print(f"[{ts}] [{level}] {msg}", flush=True)
|
||||
|
||||
def sendmail(subject, message):
|
||||
|
||||
Reference in New Issue
Block a user