Skip to content

Commit

Permalink
Log when container-paths.yml is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
belimawr committed Sep 27, 2024
1 parent 1a10c3d commit 77afa82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/pkg/agent/cmd/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"fmt"
"io"
"io/fs"
"log"
"net/url"
"os"
"os/exec"
Expand Down Expand Up @@ -894,6 +895,7 @@ func tryContainerLoadPaths() error {
// no container-paths.yml file exists, so nothing to do
return nil
}
log.Printf("container path file '%s' found", pathFile)
cfg, err := config.LoadFile(pathFile)
if err != nil {
return fmt.Errorf("failed to load %s: %w", pathFile, err)
Expand All @@ -903,6 +905,8 @@ func tryContainerLoadPaths() error {
if err != nil {
return fmt.Errorf("failed to unpack %s: %w", pathFile, err)
}
log.Printf("state Path: '%s', config path: '%s', logs path: '%s', socket path: '%s'", paths.StatePath, paths.ConfigPath, paths.LogsPath, paths.SocketPath)

return setPaths(paths.StatePath, paths.ConfigPath, paths.LogsPath, paths.SocketPath, false)
}

Expand Down

0 comments on commit 77afa82

Please sign in to comment.