Skip to content

Commit

Permalink
add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuo-danswer committed Oct 21, 2024
1 parent 5ac9189 commit 0101be6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/danswer/connectors/web/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def load_from_state(self) -> GenerateDocumentsOutput:
page.close()
except Exception as e:
last_error = f"Failed to fetch '{current_url}': {e}"
logger.error(last_error)
logger.exception(last_error)
playwright.stop()
restart_playwright = True
continue
Expand Down
6 changes: 3 additions & 3 deletions backend/tests/integration/common_utils/managers/cc_pair.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,17 +246,17 @@ def wait_for_indexing(
fetched_cc_pair.last_success
and fetched_cc_pair.last_success > after
):
print(f"CC pair {cc_pair.id} indexing complete.")
print(f"Indexing complete: cc_pair={cc_pair.id}")
return

elapsed = time.monotonic() - start
if elapsed > timeout:
raise TimeoutError(
f"CC pair {cc_pair.id} indexing was not completed within {timeout} seconds"
f"Indexing wait timed out: cc_pair={cc_pair.id} timeout={timeout}s"
)

print(
f"CC pair {cc_pair.id} indexing to complete. elapsed={elapsed:.2f} timeout={timeout}"
f"Indexing wait for completion: cc_pair={cc_pair.id} elapsed={elapsed:.2f} timeout={timeout}s"
)
time.sleep(5)

Expand Down

0 comments on commit 0101be6

Please sign in to comment.