Skip to content

Commit 98e9439

Browse files
committed
Update api.py
1 parent a028e6b commit 98e9439

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/api/api.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -997,11 +997,11 @@ def req_logging(self, obj, indent=1):
997997
def invocations(self, req: models.InvocationsRequest):
998998
with self.invocations_lock:
999999
print(f"\n ----------------------------invocation log@{datetime.datetime.now().strftime(f'%Y%m%d%H%M%S')} --------------------------- ")
1000-
# try:
1001-
# print("")
1002-
# self.req_logging(req)
1003-
# except Exception as e:
1004-
# print("console Log ran into issue: ", e)
1000+
try:
1001+
print("")
1002+
self.req_logging(req)
1003+
except Exception as e:
1004+
print("console Log ran into issue: ", e)
10051005
# print(f"log@{datetime.datetime.now().strftime(f'%Y%m%d%H%M%S')} req in invocations: {req}")
10061006
global user_input_data
10071007
user_input_data = {}
@@ -1022,7 +1022,7 @@ def invocations(self, req: models.InvocationsRequest):
10221022
f"workflow={user_input_data['workflow']},\n"
10231023
f"design_library_style={user_input_data['design_library_style']},\n"
10241024
f"camera={user_input_data['camera']},\n"
1025-
f"fidelity_level={user_input_data['fidelity_level']},\n"
1025+
# f"fidelity_level={user_input_data['fidelity_level']},\n"
10261026
f"additional_prompt={user_input_data['additional_prompt']},\n"
10271027
f"atmosphere={user_input_data['atmosphere']},\n"
10281028
f"img_width={user_input_data['img_width']},\n"

0 commit comments

Comments
 (0)