Skip to content
Snippets Groups Projects
Commit a7664f9b authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Add log level to getndf

parent 955f1839
No related branches found
No related tags found
1 merge request!117Release
......@@ -42,6 +42,14 @@ var getNDFCmd = &cobra.Command{
"and print it.",
Args: cobra.NoArgs,
Run: func(cmd *cobra.Command, args []string) {
// Note: getndf prints to stdout, so we default to not do that
logLevel := viper.GetUint("logLevel")
logPath := viper.GetString("log")
if logPath == "-" || logPath == "" {
logPath = "getndf.log"
}
initLog(logLevel, logPath)
jww.INFO.Printf(Version())
gwHost := viper.GetString("gwhost")
permHost := viper.GetString("permhost")
certPath := viper.GetString("cert")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment