Skip to content

Commit

Permalink
cli: show debug info when startup for debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Jan 27, 2024
1 parent 5dfaade commit 7558c4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/ack-ram-tool/main.go
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/AliyunContainerService/ack-ram-tool/pkg/ctl/rrsa"
"github.com/AliyunContainerService/ack-ram-tool/pkg/ctl/version"
"github.com/AliyunContainerService/ack-ram-tool/pkg/log"
vs "github.com/AliyunContainerService/ack-ram-tool/pkg/version"
"github.com/spf13/cobra"
)

Expand All @@ -29,6 +30,8 @@ More info: https://github.com/AliyunContainerService/ack-ram-tool`,
golog.Println(err)
os.Exit(1)
}
log.Logger.Debugf("Version: %s GitCommit: %s", vs.Version, vs.GitCommit)
log.Logger.Debugf("argv: %v", os.Args)
},
}
)
Expand Down

0 comments on commit 7558c4b

Please sign in to comment.