@@ -36,6 +36,7 @@ import (
3636
3737 _ "github.com/AliceO2Group/Control/apricot/docs"
3838 apricotpb "github.com/AliceO2Group/Control/apricot/protos"
39+ "github.com/AliceO2Group/Control/common/logger/infologger"
3940 "github.com/AliceO2Group/Control/common/system"
4041 "github.com/AliceO2Group/Control/configuration"
4142 "github.com/AliceO2Group/Control/configuration/componentcfg"
@@ -123,6 +124,10 @@ func NewHttpService(service configuration.Service) (svr *http.Server) {
123124
124125 // async-start of http Service and capture error
125126 go func () {
127+ log .WithField ("port" , viper .GetInt ("httpListenPort" )).
128+ WithField ("level" , infologger .IL_Support ).
129+ Info ("HTTP service started" )
130+
126131 err := httpsvr .ListenAndServe ()
127132 if err != nil {
128133 log .WithError (err ).Error ("HTTP service returned error" )
@@ -199,6 +204,8 @@ func (httpsvc *HttpService) ApiListComponents(w http.ResponseWriter, r *http.Req
199204// @Success 200
200205// @Router /components/_invalidate_cache [post]
201206func (httpsvc * HttpService ) ApiInvalidateCache (w http.ResponseWriter , r * http.Request ) {
207+ log .WithField ("level" , infologger .IL_Support ).
208+ Debug ("invalidating component template cache" )
202209 httpsvc .svc .InvalidateComponentTemplateCache ()
203210 w .WriteHeader (http .StatusOK )
204211 _ , _ = fmt .Fprintln (w , "OK" )
0 commit comments