mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 20:12:07 +08:00
print boottime in filter_log_message.py
old-commit-hash: ef73582a0fb26a072b1748e8dc8f17ec946b651a
This commit is contained in:
@@ -39,4 +39,4 @@ if __name__ == "__main__":
|
||||
log = json.loads(evt.logMessage)
|
||||
|
||||
if log['levelnum'] >= min_level:
|
||||
print(f"{log['filename']}:{log.get('lineno', '')} - {log.get('funcname', '')}: {log['msg']}")
|
||||
print(f"[{evt.logMonoTime / 1e9:.6f}] {log['filename']}:{log.get('lineno', '')} - {log.get('funcname', '')}: {log['msg']}")
|
||||
|
||||
Reference in New Issue
Block a user