Have better logging in Docker pull of pcap command

This commit is contained in:
M. Mert Yildiran
2022-12-27 10:25:42 +03:00
parent f6bde5fe76
commit d9e53b20c1
5 changed files with 64 additions and 46 deletions

View File

@@ -5,7 +5,6 @@ import (
"time"
"github.com/kubeshark/kubeshark/cmd"
"github.com/kubeshark/kubeshark/cmd/goUtils"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
)
@@ -13,5 +12,5 @@ import (
func main() {
zerolog.SetGlobalLevel(zerolog.InfoLevel)
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339}).With().Caller().Logger()
goUtils.HandleExcWrapper(cmd.Execute)
cmd.Execute()
}