Skip to content

Commit 07ba610

Browse files
committed
send: print datetime in stdout log with data
1 parent c6a0fec commit 07ba610

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

send.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import os
3+
import datetime
34
import time
45
import requests
56
import hashlib
@@ -62,7 +63,7 @@ def send(type: str, status: str, payload: dict = {}, init=False):
6263
sig = hashlib.md5(input.encode("utf-8")).hexdigest()
6364
data["sig"] = sig
6465

65-
print(data)
66+
print(datetime.datetime.now(), data)
6667

6768
if send_url:
6869
session.post(send_url, json=data)

0 commit comments

Comments
 (0)