mirror of
https://github.com/lone-cloud/prism
synced 2026-06-03 19:54:44 -07:00
better logging levels
This commit is contained in:
parent
66445b9f4e
commit
fa716d86b0
3 changed files with 5 additions and 5 deletions
|
|
@ -11,7 +11,7 @@ import (
|
||||||
func (m *Monitor) authenticateAndSetup(credStore *credentials.Store) error {
|
func (m *Monitor) authenticateAndSetup(credStore *credentials.Store) error {
|
||||||
creds, err := credStore.GetProton()
|
creds, err := credStore.GetProton()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
m.logger.Debug("Proton credentials not configured", "error", err)
|
m.logger.Info("Proton credentials not configured", "error", err)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ func (p *Integration) Start(ctx context.Context, logger *slog.Logger) {
|
||||||
|
|
||||||
creds, err := credStore.GetProton()
|
creds, err := credStore.GetProton()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Debug("Proton credentials not configured", "error", err)
|
logger.Info("Proton credentials not configured", "error", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,12 +55,12 @@ func (s *Integration) Start(ctx context.Context, logger *slog.Logger) {
|
||||||
client := s.Handlers.Client
|
client := s.Handlers.Client
|
||||||
account, _ := client.GetLinkedAccount()
|
account, _ := client.GetLinkedAccount()
|
||||||
if account != nil {
|
if account != nil {
|
||||||
logger.Debug("Signal enabled", "status", "linked", "number", FormatPhoneNumber(account.Number))
|
logger.Info("Signal enabled", "status", "linked", "number", FormatPhoneNumber(account.Number))
|
||||||
} else {
|
} 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 {
|
} else {
|
||||||
logger.Debug("Signal disabled", "reason", "signal-cli not found in PATH")
|
logger.Info("Signal disabled", "reason", "signal-cli not found in PATH")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue