fix(encrypt_decrypt_utils.py): add helper line, explaining why there might be a key decryption error

This commit is contained in:
Krrish Dholakia 2024-08-06 11:35:40 -07:00
parent d165d38d74
commit ff28823025

View file

@ -48,7 +48,9 @@ def decrypt_value_helper(value: str):
# if it's not str - do not decrypt it, return the value
return value
except Exception as e:
verbose_proxy_logger.error(f"Error decrypting value: {value}\nError: {str(e)}")
verbose_proxy_logger.error(
f"Error decrypting value, Did your master_key/salt key change recently? : {value}\nError: {str(e)}\nSet permanent salt key - https://docs.litellm.ai/docs/proxy/prod#5-set-litellm-salt-key"
)
# [Non-Blocking Exception. - this should not block decrypting other values]
pass