mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
(fix) make print_verbose non blocking
This commit is contained in:
parent
d2a53f05ed
commit
f744445db4
7 changed files with 37 additions and 16 deletions
|
@ -199,9 +199,12 @@ celery_app_conn = None
|
|||
celery_fn = None # Redis Queue for handling requests
|
||||
#### HELPER FUNCTIONS ####
|
||||
def print_verbose(print_statement):
|
||||
global user_debug
|
||||
if user_debug:
|
||||
print(print_statement)
|
||||
try:
|
||||
global user_debug
|
||||
if user_debug:
|
||||
print(print_statement)
|
||||
except:
|
||||
pass
|
||||
|
||||
def usage_telemetry(
|
||||
feature: str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue