improved logging in callbacks
This commit is contained in:
@@ -65,13 +65,16 @@ func (i *Imp) Start() error {
|
||||
return err
|
||||
}
|
||||
|
||||
resolver, err := subscriptions.New(subscriptions.Dependencies{EndpointRepo: repo.Endpoints()})
|
||||
resolver, err := subscriptions.New(subscriptions.Dependencies{
|
||||
EndpointRepo: repo.Endpoints(),
|
||||
Logger: i.logger,
|
||||
})
|
||||
if err != nil {
|
||||
i.shutdownRuntime(context.Background())
|
||||
return err
|
||||
}
|
||||
|
||||
securityValidator := security.New(security.Config{
|
||||
securityValidator := security.New(i.logger, security.Config{
|
||||
RequireHTTPS: cfg.Security.RequireHTTPS,
|
||||
AllowedHosts: cfg.Security.AllowedHosts,
|
||||
AllowedPorts: cfg.Security.AllowedPorts,
|
||||
|
||||
Reference in New Issue
Block a user