Skip to content

Commit

Permalink
info lines instead of debug (#840)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall authored Nov 15, 2024
2 parents 8c96425 + 358da1e commit c31139e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions pkg/triggers/cfsync/lidarr.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ func (a *Action) SyncLidarrInstanceCF(event website.EventType, instance int) err
func (c *cmd) syncLidarr(ctx context.Context, input *common.ActionInput) {
info := clientinfo.Get()
if info == nil || len(info.Actions.Sync.LidarrInstances) < 1 {
c.Debugf("[%s requested] Cannot sync Lidarr profiles and formats. Website provided 0 instances.", input.Type)
c.Printf("[%s requested] Cannot sync Lidarr profiles and formats. Website provided 0 instances.", input.Type)
return
} else if len(c.Apps.Lidarr) < 1 {
c.Debugf("[%s requested] Cannot sync Lidarr profiles and formats. No Lidarr instances configured.", input.Type)
c.Printf("[%s requested] Cannot sync Lidarr profiles and formats. No Lidarr instances configured.", input.Type)
return
}

for idx, app := range c.Apps.Lidarr {
instance := idx + 1
if !app.Enabled() || !info.Actions.Sync.LidarrInstances.Has(instance) {
c.Debugf("[%s requested] Profiles and formats sync skipping Lidarr instance %d. Not in sync list: %v",
c.Printf("[%s requested] Profiles and formats sync skipping Lidarr instance %d. Not in sync list: %v",
input.Type, instance, info.Actions.Sync.LidarrInstances)
continue
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/triggers/cfsync/radarr.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ func (a *Action) SyncRadarrInstanceCF(event website.EventType, instance int) err
func (c *cmd) syncRadarr(ctx context.Context, input *common.ActionInput) {
info := clientinfo.Get()
if info == nil || len(info.Actions.Sync.RadarrInstances) < 1 {
c.Debugf("[%s requested] Cannot sync Radarr profiles and formats. Website provided 0 instances.", input.Type)
c.Printf("[%s requested] Cannot sync Radarr profiles and formats. Website provided 0 instances.", input.Type)
return
} else if len(c.Apps.Radarr) < 1 {
c.Debugf("[%s requested] Cannot sync Radarr profiles and formats. No Radarr instances configured.", input.Type)
c.Printf("[%s requested] Cannot sync Radarr profiles and formats. No Radarr instances configured.", input.Type)
return
}

for idx, app := range c.Apps.Radarr {
instance := idx + 1
if !app.Enabled() || !info.Actions.Sync.RadarrInstances.Has(instance) {
c.Debugf("[%s requested] Profiles and formats sync skipping Radarr instance %d. Not in sync list: %v",
c.Printf("[%s requested] Profiles and formats sync skipping Radarr instance %d. Not in sync list: %v",
input.Type, instance, info.Actions.Sync.RadarrInstances)
continue
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/triggers/cfsync/sonarr.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ func (a *Action) SyncSonarrInstanceRP(event website.EventType, instance int) err
func (c *cmd) syncSonarr(ctx context.Context, input *common.ActionInput) {
info := clientinfo.Get()
if info == nil || len(info.Actions.Sync.SonarrInstances) < 1 {
c.Debugf("[%s requested] Cannot sync Sonarr profiles and formats. Website provided 0 instances.", input.Type)
c.Printf("[%s requested] Cannot sync Sonarr profiles and formats. Website provided 0 instances.", input.Type)
return
} else if len(c.Apps.Sonarr) < 1 {
c.Debugf("[%s requested] Cannot sync Sonarr profiles and formats. No Sonarr instances configured.", input.Type)
c.Printf("[%s requested] Cannot sync Sonarr profiles and formats. No Sonarr instances configured.", input.Type)
return
}

for idx, app := range c.Apps.Sonarr {
instance := idx + 1
if !app.Enabled() || !info.Actions.Sync.SonarrInstances.Has(instance) {
c.Debugf("[%s requested] Profiles and formats sync skipping Sonarr instance %d. Not in sync list: %v",
c.Printf("[%s requested] Profiles and formats sync skipping Sonarr instance %d. Not in sync list: %v",
input.Type, instance, info.Actions.Sync.SonarrInstances)
continue
}
Expand Down

0 comments on commit c31139e

Please sign in to comment.