You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d829ad7
Browse filesBrowse the repository at this point in the historyBrowse files
logging_initialize sets the stdlib loggers httpx, httpx2 and urllib3 to
WARNING. httpx logs each request URL at INFO, including the query string
of signed URLs. The root logger is at level 0, so these lines got to all
loguru sinks and to Sentry breadcrumbs.
Tests restore the stdlib logger levels, the root level and the
InterceptHandler after each logging_initialize call.
BREAKING CHANGE: logging_initialize sets the httpx, httpx2 and urllib3 loggers
to WARNING. INFO request lines no longer get to the log sinks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src/aignostics_foundry_core/AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -171,7 +171,7 @@ This file provides an overview of all modules in `aignostics_foundry_core`, thei
171
171
-**Key Features**:
172
172
-`InterceptHandler(logging.Handler)` — redirects stdlib log records to loguru, preserving original module/function/line metadata
173
173
-`LogSettings(BaseSettings)` — uses the active FoundryContext.env_prefix to derive the env prefix (`{ctx.env_prefix}LOG_`). Fields: `level`, `stderr_enabled`, `file_enabled`, `file_name`, `redirect_logging`
174
-
-`logging_initialize(filter_func, *, context)` — removes all existing loguru handlers, then adds stderr/file handlers per settings; reads project name, version, and env file list from `context` (falls back to process-level context); embeds `project_name` and `version` in loguru `extra`; installs `InterceptHandler` for stdlib redirect; suppresses psycopgpool noise
174
+
-`logging_initialize(filter_func, *, context)` — removes all existing loguru handlers, then adds stderr/file handlers per settings; reads project name, version, and env file list from `context` (falls back to process-level context); embeds `project_name` and `version` in loguru `extra`; installs `InterceptHandler` for stdlib redirect; sets the stdlib loggers `psycopg`, `psycopg.pool`, `httpx`, `httpx2` and `urllib3` to WARNING (process-wide), so the INFO request lines of the HTTP clients, which contain the request URL and its query string, do not get to the sinks
0 commit comments