log level env var; update geth dep

This commit is contained in:
Ian Norden
2020-08-17 16:51:53 -05:00
parent 578afaf314
commit 2817d847ef
7 changed files with 14 additions and 15 deletions
+1
View File
@@ -65,6 +65,7 @@ func initFuncs(cmd *cobra.Command, args []string) {
}
func logLevel() error {
viper.BindEnv("log.level", "LOGRUS_LEVEL")
lvl, err := log.ParseLevel(viper.GetString("log.level"))
if err != nil {
return err