Minor background process log cleanup ()

This commit is contained in:
pablonyx 2025-02-15 11:03:10 -08:00 committed by GitHub
parent 2829e6715e
commit 7fd5d31dbe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions
backend/onyx
db
server/settings

@ -354,7 +354,10 @@ def delete_chat_session(
hard_delete: bool = HARD_DELETE_CHATS,
) -> None:
chat_session = get_chat_session_by_id(
chat_session_id=chat_session_id, user_id=user_id, db_session=db_session
chat_session_id=chat_session_id,
user_id=user_id,
db_session=db_session,
include_deleted=include_deleted,
)
if chat_session.deleted and not include_deleted:

@ -19,7 +19,8 @@ def load_settings() -> Settings:
Settings.model_validate(stored_settings) if stored_settings else Settings()
)
except KvKeyNotFoundError:
logger.error(f"No settings found in KV store for key: {KV_SETTINGS_KEY}")
# Default to empty settings if no settings have been set yet
logger.debug(f"No settings found in KV store for key: {KV_SETTINGS_KEY}")
settings = Settings()
except Exception as e:
logger.error(f"Error loading settings from KV store: {str(e)}")