mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 20:08:36 +02:00
Google Drive Connector Debug Logging (#241)
This commit is contained in:
parent
3b546ba1c3
commit
2a0d3b38e9
@ -89,6 +89,8 @@ def get_file_batches(
|
||||
query += f"and '{folder_id}' in parents "
|
||||
query = query.rstrip() # remove the trailing space(s)
|
||||
|
||||
logger.debug(f"Running Google Drive fetch with query: {query}")
|
||||
|
||||
results = (
|
||||
service.files()
|
||||
.list(
|
||||
|
@ -48,6 +48,7 @@ def translate_db_time_to_server_time(
|
||||
server_now = datetime.now(timezone.utc)
|
||||
db_now = get_db_current_time(db_session)
|
||||
time_diff = server_now - db_now
|
||||
logger.debug(f"Server time to DB time offset: {time_diff.total_seconds()} seconds")
|
||||
return db_time + time_diff
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user