Skip to content

Commit 63cf54c

Browse files
committed
Trying more debugging options
1 parent b0db207 commit 63cf54c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/db.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def search_issues(params: IssuesParams):
3131

3232
with duckdb.connect() as conn:
3333
try:
34-
logger.info(conn.execute("FROM duckdb_secrets();").fetchall())
34+
logger.info(conn.execute("SET enable_http_logging = true").fetchall())
35+
logger.info(conn.execute("SELECT * FROM duckdb_settings();").fetchall())
3536
count = conn.execute(sql_count).fetchone()[0] # Count is first item in Tuple
3637
logger.debug(count)
3738
results = conn.execute(sql_results).arrow().to_pylist()

src/log.py

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
import logging
33
import sys
44

5-
# Temporary to help debug httpx S3 connection issue in AWS
6-
logging.getLogger("httpx").setLevel("DEBUG")
7-
85

96
def get_logger(logger_name):
107
logger = logging.getLogger(logger_name)

0 commit comments

Comments
 (0)