mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-06-19 16:45:15 +03:00
refactor: add agent name in logger
This commit is contained in:
@@ -33,6 +33,7 @@ func NewApp() (*App, error) {
|
||||
|
||||
logger := log.NewLogger(cfg)
|
||||
logger = logger.With().Str("component", "internal.app").Logger()
|
||||
logger = logger.With().Str("name", cfg.AppName).Logger()
|
||||
|
||||
sett, err := settings.ReadSettings(cfg.SettingsPath)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user