Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
flagify and use info loglevel
Browse files Browse the repository at this point in the history
  • Loading branch information
luxas committed Aug 21, 2020
1 parent feb5819 commit c226914
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/sample-app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"github.com/weaveworks/libgitops/pkg/storage"
)

var manifestDirFlag = pflag.String("data-dir", "/tmp/libgitops/manifest", "Where to store the JSON files")
var manifestDirFlag = pflag.String("data-dir", "/tmp/libgitops/manifest", "Where to store the YAML files")

func main() {
// Parse the version flag
Expand All @@ -38,7 +38,7 @@ func run() error {
}

// Set the log level
logs.Logger.SetLevel(logrus.TraceLevel)
logs.Logger.SetLevel(logrus.InfoLevel)

plainStorage := storage.NewGenericStorage(
storage.NewGenericRawStorage(*manifestDirFlag, v1alpha1.SchemeGroupVersion, serializer.ContentTypeYAML),
Expand Down
2 changes: 1 addition & 1 deletion cmd/sample-watch/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func run() error {
}

// Set the log level
logs.Logger.SetLevel(logrus.TraceLevel)
logs.Logger.SetLevel(logrus.InfoLevel)

watchStorage, err := watch.NewManifestStorage(*watchDirFlag, scheme.Serializer)
if err != nil {
Expand Down

0 comments on commit c226914

Please sign in to comment.