mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Log failures during provisioning initialization (#75550)
Provisioning: Log failures
This commit is contained in:
parent
4899169445
commit
3a1c3be057
@ -150,21 +150,25 @@ type ProvisioningServiceImpl struct {
|
||||
func (ps *ProvisioningServiceImpl) RunInitProvisioners(ctx context.Context) error {
|
||||
err := ps.ProvisionDatasources(ctx)
|
||||
if err != nil {
|
||||
ps.log.Error("Failed to provision data sources", "error", err)
|
||||
return err
|
||||
}
|
||||
|
||||
err = ps.ProvisionPlugins(ctx)
|
||||
if err != nil {
|
||||
ps.log.Error("Failed to provision plugins", "error", err)
|
||||
return err
|
||||
}
|
||||
|
||||
err = ps.ProvisionNotifications(ctx)
|
||||
if err != nil {
|
||||
ps.log.Error("Failed to provision alert notifications", "error", err)
|
||||
return err
|
||||
}
|
||||
|
||||
err = ps.ProvisionAlerting(ctx)
|
||||
if err != nil {
|
||||
ps.log.Error("Failed to provision alerting", "error", err)
|
||||
return err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user