From f7c62d2a00d2f55a4401773f5635601d056abd8e Mon Sep 17 00:00:00 2001 From: Johannes Edmeier Date: Mon, 21 Aug 2023 17:15:19 +0200 Subject: [PATCH] refa: log additional runtime debug information --- go.mod | 4 ++-- go.sum | 8 ++++---- main.go | 3 +++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index dc0ef82..f43245d 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/steadybit/action-kit/go/action_kit_api/v2 v2.7.1 github.com/steadybit/action-kit/go/action_kit_sdk v1.1.5 github.com/steadybit/discovery-kit/go/discovery_kit_api v1.3.0 - github.com/steadybit/extension-kit v1.8.5 + github.com/steadybit/extension-kit v1.8.7 ) // Workaround for https://github.com/testcontainers/testcontainers-go/issues/1359 @@ -45,7 +45,7 @@ require ( github.com/gin-gonic/gin v1.9.1 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect - github.com/go-playground/validator/v10 v10.15.0 // indirect + github.com/go-playground/validator/v10 v10.15.1 // indirect github.com/goccy/go-json v0.10.2 // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/protobuf v1.5.3 // indirect diff --git a/go.sum b/go.sum index 2d74eec..f1b624f 100644 --- a/go.sum +++ b/go.sum @@ -65,8 +65,8 @@ github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/o github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY= github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY= github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY= -github.com/go-playground/validator/v10 v10.15.0 h1:nDU5XeOKtB3GEa+uB7GNYwhVKsgjAR7VgKoNB6ryXfw= -github.com/go-playground/validator/v10 v10.15.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= +github.com/go-playground/validator/v10 v10.15.1 h1:BSe8uhN+xQ4r5guV/ywQI4gO59C2raYcGffYWZEjZzM= +github.com/go-playground/validator/v10 v10.15.1/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU= github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= @@ -174,8 +174,8 @@ github.com/steadybit/action-kit/go/action_kit_sdk v1.1.5 h1:X7g9KpreF/A/mDCHKwWk github.com/steadybit/action-kit/go/action_kit_sdk v1.1.5/go.mod h1:ABoB087BeiUAfRsLnVEmQ5KDMww7N/v57siEvjmhJtw= github.com/steadybit/discovery-kit/go/discovery_kit_api v1.3.0 h1:HwvovoYbAYpJ5PnMeiJUgrjwVkV5EpveAjeHH9pPDMQ= github.com/steadybit/discovery-kit/go/discovery_kit_api v1.3.0/go.mod h1:OnIfjrBhmMQCYxriHmr8mT1wCpvqIZxwBHWnanFhgNA= -github.com/steadybit/extension-kit v1.8.5 h1:e3oixDs2as5g/YNzwMUlVXrNeosR9H/3kP+QGqkD/6w= -github.com/steadybit/extension-kit v1.8.5/go.mod h1:3/g4FjU9EJcrHCuY6+vBETFdgQOKVt5Aa9hMXJ1r29U= +github.com/steadybit/extension-kit v1.8.7 h1:C4PWMT3c0TA1HUZlO2ooe1SBK8w3wAsJtq/hsXurbQI= +github.com/steadybit/extension-kit v1.8.7/go.mod h1:Vc4DD/wayeP8UgFEsfZzQHT9Ji4LZa6CeVaDCAt5O74= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= diff --git a/main.go b/main.go index 5b50516..19be3e2 100644 --- a/main.go +++ b/main.go @@ -4,6 +4,7 @@ package main import ( + "github.com/rs/zerolog" "github.com/steadybit/action-kit/go/action_kit_api/v2" "github.com/steadybit/action-kit/go/action_kit_sdk" "github.com/steadybit/discovery-kit/go/discovery_kit_api" @@ -11,6 +12,7 @@ import ( "github.com/steadybit/extension-kit/exthealth" "github.com/steadybit/extension-kit/exthttp" "github.com/steadybit/extension-kit/extlogging" + "github.com/steadybit/extension-kit/extruntime" "github.com/steadybit/extension-prometheus/extinstance" "github.com/steadybit/extension-prometheus/extmetric" ) @@ -18,6 +20,7 @@ import ( func main() { extlogging.InitZeroLog() extbuild.PrintBuildInformation() + extruntime.LogRuntimeInformation(zerolog.DebugLevel) exthealth.SetReady(false) exthealth.StartProbes(8088)