Skip to content

Suppress sensitive libgm trace logging - #20

Merged
Phloraxx merged 5 commits into
mainfrom
hotfix/gmessages-log-level
Jul 27, 2026
Merged

Suppress sensitive libgm trace logging#20
Phloraxx merged 5 commits into
mainfrom
hotfix/gmessages-log-level

Conversation

@Phloraxx

Copy link
Copy Markdown
Owner

Problem

libgm uses Trace/Debug logs for encoded HTTP/protobuf response bodies. The production zerolog passed to Google Messages had no minimum level, so protocol payloads could be retained in Docker logs.

Fix

  • add gmessages.ProductionLogger, clamped to zerolog.InfoLevel;
  • use it for both the live Google Messages manager and the manual pairing command;
  • keep Info/Warn/Error lifecycle and failure logs;
  • regression-test that fake sensitive Trace/Debug payloads are suppressed even when the caller supplies a Trace-level base logger.

This is intentionally independent of the Google reauthentication logic merged in PR #19.

@Phloraxx
Phloraxx merged commit 5792358 into main Jul 27, 2026
1 check passed
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.

1 participant