Google Drive Connector Debug Logging (#241)

This commit is contained in:
Yuhong Sun 2023-07-27 09:27:57 -07:00 committed by GitHub
parent 3b546ba1c3
commit 2a0d3b38e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -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(

View File

@ -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