VOL-2170 add common method the output GRPC status error
Change-Id: Ibc48cb087cd73f981542bcb137bdb4f213fa7e8d
diff --git a/internal/pkg/commands/loglevel.go b/internal/pkg/commands/loglevel.go
index e7723fd..5da4e12 100644
--- a/internal/pkg/commands/loglevel.go
+++ b/internal/pkg/commands/loglevel.go
@@ -72,7 +72,7 @@
func RegisterLogLevelCommands(parent *flags.Parser) {
_, err := parent.AddCommand("loglevel", "loglevel commands", "Get and set log levels", &logLevelOpts)
if err != nil {
- panic(err)
+ Error.Fatalf("Unable to register log level commands with voltctl command parser: %s", err.Error())
}
}