mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-02 11:05:22 +00:00
🩹 Exit if couldn't set the secret and log server init error instead of panic
This commit is contained in:
@@ -77,7 +77,6 @@ func updateLicense(licenseKey string) {
|
||||
updated, err := kubernetes.SetSecret(kubernetesProvider, kubernetes.SECRET_LICENSE, config.Config.License)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Send()
|
||||
return
|
||||
}
|
||||
|
||||
if updated {
|
||||
@@ -125,7 +124,7 @@ func runLicenseRecieverServer() {
|
||||
|
||||
go func() {
|
||||
if err := ginApp.Run(fmt.Sprintf(":%d", PRO_PORT)); err != nil {
|
||||
panic(err)
|
||||
log.Error().Err(err).Send()
|
||||
}
|
||||
}()
|
||||
|
||||
|
Reference in New Issue
Block a user