improve timestamp in comfyui.log (#1154)

This commit is contained in:
Ezer Karavani
2024-10-19 12:07:33 +01:00
committed by GitHub
parent 9e95e3162a
commit 75d57e4335

View File

@@ -257,7 +257,7 @@ try:
def sync_write(self, message, file_only=False):
with log_lock:
timestamp = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')[:-3]
timestamp = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]
if self.last_char != '\n':
log_file.write(message)
else: