Add .Send() call to logs without .Msg() call

This commit is contained in:
M. Mert Yildiran
2022-11-29 03:55:50 +03:00
parent 36594d70ea
commit 4892c9dbdc
9 changed files with 13 additions and 13 deletions

View File

@@ -93,7 +93,7 @@ func handleKubernetesProviderError(err error) {
if ok := errors.As(err, &clusterBehindProxyErr); ok {
log.Error().Msg(fmt.Sprintf("Cannot establish http-proxy connection to the Kubernetes cluster. If youre using Lens or similar tool, please run kubeshark with regular kubectl config using --%v %v=$HOME/.kube/config flag", config.SetCommandName, config.KubeConfigPathConfigName))
} else {
log.Error().Err(err)
log.Error().Err(err).Send()
}
}