app: switch a couple of Info statements to Debug
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-05-04 16:35:41 +02:00
parent 18adb45692
commit 38f72825e0
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -45,7 +45,7 @@ func (a *App) Init(s *settings.Settings, logger *slogging.Logger, dbclient *ent.
a.Logger().Infof("app version: %s", a.setting.Version()) a.Logger().Infof("app version: %s", a.setting.Version())
a.Logger().Info("saving db connection string") a.Logger().Debug("saving db client object")
a.db = dbclient a.db = dbclient
if a.templatesPath == "" { if a.templatesPath == "" {
@ -85,11 +85,11 @@ func (a *App) Logger() *slogging.Logger {
func (a *App) PrintConfiguration() { func (a *App) PrintConfiguration() {
if a.setting != nil { if a.setting != nil {
if a.setting.IsLive() { if a.setting.IsLive() {
a.Logger().Info("app config: live mode enabled") a.Logger().Debug("app config: live mode enabled")
} }
if a.setting.IsDevel() { if a.setting.IsDevel() {
a.Logger().Info("app config: devel mode enabled - make sure that browser-sync is running") a.Logger().Debug("app config: devel mode enabled - make sure that browser-sync is running")
} }
return return
@ -104,7 +104,7 @@ func (a *App) SetSettings(s *settings.Settings) {
// SetEmbeds saves the embedded files to application state. // SetEmbeds saves the embedded files to application state.
func (a *App) SetEmbeds(templates, assets embed.FS) { func (a *App) SetEmbeds(templates, assets embed.FS) {
a.logger.Info("setting embeds") a.logger.Debug("saving embeds in app struct")
a.embeds.templates = templates a.embeds.templates = templates
a.embeds.assets = assets a.embeds.assets = assets
} }