Skip to content

Commit

Permalink
add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
tedim52 committed Oct 29, 2024
1 parent 31ecf0f commit 4f923a5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/sirupsen/logrus"
"os"
"os/exec"
"strings"
Expand Down Expand Up @@ -38,6 +39,7 @@ func loadDockerAuth() (RegistryAuthConfig, error) {
file, err := os.ReadFile(configFilePath)
if errors.Is(err, os.ErrNotExist) {
// If the auth config doesn't exist, return an empty auth config
logrus.Debugf("No docker config found at '%s'. Returning empty registry auth config.", configFilePath)
return RegistryAuthConfig{}, nil

Check failure on line 43 in container-engine-lib/lib/backend_impls/docker/docker_manager/docker_auth.go

View workflow job for this annotation

GitHub Actions / golang-lint (container-engine-lib)

Auths, CredHelpers, CredsStore are missing in RegistryAuthConfig (exhaustruct)
} else if err != nil {
return RegistryAuthConfig{}, stacktrace.Propagate(err, "error reading Docker config file at '%s'", configFilePath)
Expand Down

0 comments on commit 4f923a5

Please sign in to comment.