Skip to content

Please do not log to standard output streams from the library #73

@alexandervantrijffel

Description

@alexandervantrijffel

First of all thanks for sharing this really helpful crate. We have used it in the past to publish metrics to DataDog and after we migrated to New Relic, we are still benefiting from the dogstatsd crate.

On several locations, the library writes errors to stdout using the println! macro, example:

println!("Exception occurred when writing to channel: {:?}", error);

Can these error logs be removed? These error logs are polluting our logs in certain scenarios.

In several occurrences, instead of logging the errors, the errors can be returned to the caller so that the caller can decide what to do with the errors. Or perhaps the error logs can be gated behind a Rust feature flag so they’re only emitted when the feature is enabled?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions