fix audit log prefix for public dashboards (#53070)

This commit is contained in:
Jeff Levin
2022-08-01 14:46:48 -08:00
committed by GitHub
parent cc20f04860
commit b3f7deebda
4 changed files with 14 additions and 2 deletions

View File

@@ -25,6 +25,8 @@ type PublicDashboardServiceImpl struct {
store publicdashboards.Store
}
var LogPrefix = "publicdashboards.service"
// Gives us compile time error if the service does not adhere to the contract of
// the interface
var _ publicdashboards.Service = (*PublicDashboardServiceImpl)(nil)
@@ -36,7 +38,7 @@ func ProvideService(
store publicdashboards.Store,
) *PublicDashboardServiceImpl {
return &PublicDashboardServiceImpl{
log: log.New("publicdashboards"),
log: log.New(LogPrefix),
cfg: cfg,
store: store,
}