better logging levels

This commit is contained in:
Egor 2026-02-26 23:56:19 -08:00
parent 66445b9f4e
commit fa716d86b0
3 changed files with 5 additions and 5 deletions

View file

@ -11,7 +11,7 @@ import (
func (m *Monitor) authenticateAndSetup(credStore *credentials.Store) error {
creds, err := credStore.GetProton()
if err != nil {
m.logger.Debug("Proton credentials not configured", "error", err)
m.logger.Info("Proton credentials not configured", "error", err)
return nil
}

View file

@ -55,7 +55,7 @@ func (p *Integration) Start(ctx context.Context, logger *slog.Logger) {
creds, err := credStore.GetProton()
if err != nil {
logger.Debug("Proton credentials not configured", "error", err)
logger.Info("Proton credentials not configured", "error", err)
return
}

View file

@ -55,12 +55,12 @@ func (s *Integration) Start(ctx context.Context, logger *slog.Logger) {
client := s.Handlers.Client
account, _ := client.GetLinkedAccount()
if account != nil {
logger.Debug("Signal enabled", "status", "linked", "number", FormatPhoneNumber(account.Number))
logger.Info("Signal enabled", "status", "linked", "number", FormatPhoneNumber(account.Number))
} else {
logger.Debug("Signal enabled", "status", "unlinked", "action", "visit admin UI to link")
logger.Info("Signal enabled", "status", "unlinked", "action", "visit admin UI to link")
}
} else {
logger.Debug("Signal disabled", "reason", "signal-cli not found in PATH")
logger.Info("Signal disabled", "reason", "signal-cli not found in PATH")
}
}