Skip to content

[Backport 2.33-maintenance] feat(libstore/aws-creds): route AWS CRT logs through Nix logger#15097

Merged
internal-nix-ci[bot] merged 2 commits into2.33-maintenancefrom
backport-15059-to-2.33-maintenance
Jan 27, 2026
Merged

[Backport 2.33-maintenance] feat(libstore/aws-creds): route AWS CRT logs through Nix logger#15097
internal-nix-ci[bot] merged 2 commits into2.33-maintenancefrom
backport-15059-to-2.33-maintenance

Conversation

@internal-nix-ci
Copy link

Automatic backport to 2.33-maintenance, triggered by a label in #15059.

lovesegfault and others added 2 commits January 27, 2026 14:01
Previously AWS CRT logs went directly to stderr via ApiHandle::InitializeLogging,
causing log spam that didn't respect Nix's verbosity settings.

This implements a custom aws_logger using the aws-c-common C API that:
- Routes all AWS logs through nix::logger
- Maps AWS log levels conservatively (ERROR/WARN -> lvlInfo) since the SDK
  treats expected conditions like missing IMDS as errors
- Prefixes messages with (aws) for clarity
- Respects Nix's verbosity flags (-v, -vv, etc.)

(cherry picked from commit 3b8b764)
As requested in review.

(cherry picked from commit e3b788b)
@internal-nix-ci internal-nix-ci bot enabled auto-merge January 27, 2026 14:01
@internal-nix-ci internal-nix-ci bot merged commit 9bf642b into 2.33-maintenance Jan 27, 2026
19 checks passed
@internal-nix-ci internal-nix-ci bot deleted the backport-15059-to-2.33-maintenance branch January 27, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants