Skip to content

docs: add logging stub clarifying silent-by-design posture#6

Merged
jramos merged 1 commit into
developfrom
docs/logging-stub
Apr 23, 2026
Merged

docs: add logging stub clarifying silent-by-design posture#6
jramos merged 1 commit into
developfrom
docs/logging-stub

Conversation

@jramos
Copy link
Copy Markdown
Owner

@jramos jramos commented Apr 23, 2026

Summary

  • Adds docs/logging.md (~25 lines) stating the design intent explicitly: cgminer_api_client has no Logger module and emits no structured log events. It raises on failure and returns result objects on success; callers own log emission.
  • Notes the CLI's -v/--verbose flag is operator-facing stderr diagnostic output, not a structured-log contract (wire lines aren't JSON and shouldn't be piped to an aggregator).
  • Links to cgminer_monitor/docs/log_schema.md as the cross-repo source of truth for the structured-log schema, and names the two monitor-side events (poll.miner_failed, poll.unexpected_error) whose error: key surfaces api_client's exception-class hierarchy.

Scope

Part of the cross-repo structured-log-schema rollout. Companion PRs:

Land cgminer_monitor first so the cross-repo link resolves immediately.

Pure docs — no Ruby API change, no version bump.

Test plan

Short stub documenting that cgminer_api_client has no Logger
module and emits no structured log events — it raises on
failure (ConnectionError, SocketReadTimeout, etc.) and returns
MinerResult/PoolResult on success. Callers (cgminer_monitor,
cgminer_manager, the operator CLIs) own the log call sites.

Points at cgminer_monitor/docs/log_schema.md as the cross-repo
source of truth for the structured-log contract, and names the
monitor-side events (poll.miner_failed, poll.unexpected_error)
that surface api_client's public exception-class hierarchy via
their `error:` key.

Also notes that the CLI's -v/--verbose flag prints to stderr for
operator debugging and is NOT a structured-log contract.
@jramos jramos merged commit a5bd2f2 into develop Apr 23, 2026
6 checks passed
@jramos jramos deleted the docs/logging-stub branch April 23, 2026 19:29
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