Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: send debug output to stderr #467

Merged
merged 1 commit into from
Apr 6, 2023
Merged

fix: send debug output to stderr #467

merged 1 commit into from
Apr 6, 2023

Commits on Apr 5, 2023

  1. fix: send debug output to stderr

    When enabling debug output (`HCLOUD_DEBUG=true`), this was being
    printed to stdout by default. If one was using the output of the
    command in a script, this would break that usage.
    
    By outputting to stderr, we can make sure that the "normal" output
    still works as expected and can be used in subsequent steps.
    
    For example:
    
        export HCLOUD_DEBUG=true
        IP=$(hcloud server ip hccm-dev-1)
        ping $IP
    apricote committed Apr 5, 2023
    Configuration menu
    Copy the full SHA
    12bc9c6 View commit details
    Browse the repository at this point in the history