Skip to content
This repository has been archived by the owner on Dec 26, 2024. It is now read-only.

Commit

Permalink
feat: dynamic log type for sonarr/whisparr (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
s0up4200 authored Dec 30, 2023
1 parent acab2d9 commit 7a4740b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion internal/processor/sonarr.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ import (
)

func (s Service) sonarr(ctx context.Context, cfg *domain.ArrConfig, dryRun bool, brr *autobrr.Client) error {
l := log.With().Str("type", "sonarr").Str("client", cfg.Name).Logger()
var arrType string
if cfg.Type == domain.ArrTypeWhisparr {
arrType = "whisparr"
} else {
arrType = "sonarr"
}

l := log.With().Str("type", arrType).Str("client", cfg.Name).Logger()

l.Debug().Msgf("gathering titles...")

Expand Down

0 comments on commit 7a4740b

Please sign in to comment.