Skip to content

fix(logging): replace println!/eprintln! with log crate#185

Merged
0xIchigo merged 1 commit intohelius-labs:devfrom
stegaBOB:fix/replace-println-with-log-crate
Mar 20, 2026
Merged

fix(logging): replace println!/eprintln! with log crate#185
0xIchigo merged 1 commit intohelius-labs:devfrom
stegaBOB:fix/replace-println-with-log-crate

Conversation

@stegaBOB
Copy link
Copy Markdown
Contributor

Summary

  • Adds the log crate as a dependency
  • Replaces all println!/eprintln! calls in library code with appropriate log macros (info!, warn!, error!, debug!)
  • Consumers using tracing, env_logger, or any log-compatible subscriber can now capture SDK diagnostics as structured log events instead of raw stdout/stderr output

Closes #184

Test plan

  • cargo build --release passes
  • cargo test — all 29 tests pass
  • cargo fmt — no changes needed
  • cargo clippy — clean (only pre-existing deprecation warning)

🤖 Generated with Claude Code

Use structured logging via the `log` crate instead of printing directly
to stdout/stderr, so consumers using `tracing` or other log subscribers
can capture SDK diagnostics as structured log events.

Closes helius-labs#184

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@0xIchigo 0xIchigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🔥

@0xIchigo 0xIchigo merged commit 53f33f4 into helius-labs:dev Mar 20, 2026
1 check passed
@stegaBOB stegaBOB deleted the fix/replace-println-with-log-crate branch March 20, 2026 17:57
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.

Use log crate instead of println

2 participants