move some debugs to trace

This commit is contained in:
meisnate12 2021-12-13 09:28:46 -05:00
parent 26779c566d
commit 0a6ec9ea2c
3 changed files with 8 additions and 6 deletions

View file

@ -923,7 +923,7 @@ class CollectionBuilder:
else:
raise Failed(f"{self.Type} Error: {method_name} attribute must be either all, future, missing, existing, pilot, first, latest or none")
elif method_name == "sonarr_series":
if str(method_data).lower() in sonarr.series_type:
if str(method_data).lower() in sonarr.series_types:
self.sonarr_details["series"] = str(method_data).lower()
else:
raise Failed(f"{self.Type} Error: {method_name} attribute must be either standard, daily, or anime")

View file

@ -60,8 +60,9 @@ class Radarr:
if movie.path:
arr_paths[movie.path[:-1] if movie.path.endswith(("/", "\\")) else movie.path] = movie.tmdbId
arr_ids[movie.tmdbId] = movie
logger.debug(arr_paths)
logger.debug(arr_ids)
if self.config.trace_mode:
logger.debug(arr_paths)
logger.debug(arr_ids)
added = []
exists = []

View file

@ -6,7 +6,7 @@ from arrapi.exceptions import ArrException, Invalid
logger = logging.getLogger("Plex Meta Manager")
series_type = ["standard", "daily", "anime"]
series_types = ["standard", "daily", "anime"]
monitor_translation = {
"all": "all", "future": "future", "missing": "missing", "existing": "existing",
"pilot": "pilot", "first": "firstSeason", "latest": "latestSeason", "none": "none"
@ -86,8 +86,9 @@ class Sonarr:
if series.path:
arr_paths[series.path[:-1] if series.path.endswith(("/", "\\")) else series.path] = series.tvdbId
arr_paths[series.tvdbId] = series
logger.debug(arr_paths)
logger.debug(arr_ids)
if self.config.trace_mode:
logger.debug(arr_paths)
logger.debug(arr_ids)
added = []
exists = []