diff --git a/config/utils.go b/config/utils.go index 76b17ca16..e82731041 100644 --- a/config/utils.go +++ b/config/utils.go @@ -40,7 +40,7 @@ func BytesToAnyTomlStruct(logger zerolog.Logger, filename, configurationName str return err } - err = toml.Unmarshal(marshalled, &target) + err = toml.Unmarshal(marshalled, target) if err != nil { return err } diff --git a/logstream/logstream_handlers.go b/logstream/logstream_handlers.go index 3b1e4986c..8dff3734d 100644 --- a/logstream/logstream_handlers.go +++ b/logstream/logstream_handlers.go @@ -207,8 +207,7 @@ func (h *LokiLogHandler) GetLogLocation(consumers map[string]*ContainerLogConsum } relativeUrl := sb.String() - sb.WriteString(baseUrl) - h.grafanaUrl = sb.String() + h.grafanaUrl = baseUrl + sb.String() // try to shorten the URL only if we have all the required configuration parameters if baseUrl != "" && dabshoardUrl != "" && h.loggingConfig.Grafana.BearerToken != nil {