Update main.py

This commit is contained in:
Lucas - BLOCK33 2024-12-24 18:56:41 -03:00 committed by GitHub
parent 1d3e8377e6
commit b0d8059f9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -187,7 +187,7 @@ def prompt_worker(q, server_instance):
# Log Time in a more readable way after 10 minutes
if execution_time > 600:
execution_time = time.strftime("%H:%M:%S", time.gmtime(execution_time))
logging.info("Prompt executed in", execution_time)
logging.info(f"Prompt executed in {execution_time}")
else:
logging.info("Prompt executed in {:.2f} seconds".format(execution_time))