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

Increase log level when failing to create pipeline #4107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Sep 13, 2024

  1. Increase verbosity of logs when failing to create pipeline

    Increase verbosity of logs when failing to create pipelines. There are situations when woodpecker server may fail to create a pipeline and will only log the error under "debug", making it hard to debug the issue unless the user has explicitly activated debug logs.
    
    To reproduce this, set the server environment variable WOODPECKER_CONFIG_SERVICE_ENDPOINT to an invalid service, i.e.
    
    ```
    WOODPECKER_CONFIG_SERVICE_ENDPOINT: "http://invalid/config"
    ```
    
    And it will fail to create a pipeline, but no error logs will be displayed, only a debug log:
    
    ```
    {"level":"debug","repo":"<redacted>","error":"failed to fetch config via http (0) Post \"http://ci-template-plugin/config\": dial tcp: lookup invalid on 198.18.0.1:53: no such host","time":"2024-09-13T14:06:02Z","caller":"/go/src/github.com/woodpecker-ci/woodpecker/server/pipeline/create.go:90","message":"error while fetching config '' in 'refs/heads/fernandrone-patch-1' with user: 'fernandrone'"}
    ```
    fernandrone authored Sep 13, 2024
    Configuration menu
    Copy the full SHA
    7cd21ef View commit details
    Browse the repository at this point in the history