From 41ac15b20445d9432a6026a10b4e3dc13aa893b5 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Tue, 20 Dec 2022 21:41:27 +0100 Subject: [PATCH] Relax logging --- Model/Cache/ChannelsCacheModel.swift | 4 ++-- Model/Cache/FeedCacheModel.swift | 2 +- Model/Cache/PlaylistsCacheModel.swift | 2 +- Model/Cache/VideosCacheModel.swift | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Model/Cache/ChannelsCacheModel.swift b/Model/Cache/ChannelsCacheModel.swift index 49e2f3e7..8a445588 100644 --- a/Model/Cache/ChannelsCacheModel.swift +++ b/Model/Cache/ChannelsCacheModel.swift @@ -18,7 +18,7 @@ struct ChannelsCacheModel: CacheModel { func store(_ channel: Channel) { guard channel.hasExtendedDetails else { - logger.warning("not caching \(channel.cacheKey)") + logger.debug("not caching \(channel.cacheKey)") return } @@ -35,7 +35,7 @@ struct ChannelsCacheModel: CacheModel { } func retrieve(_ cacheKey: String) -> Channel? { - logger.info("retrieving cache for \(cacheKey)") + logger.debug("retrieving cache for \(cacheKey)") if let json = try? storage?.object(forKey: cacheKey) { return Channel.from(json) diff --git a/Model/Cache/FeedCacheModel.swift b/Model/Cache/FeedCacheModel.swift index d65a7936..b446e203 100644 --- a/Model/Cache/FeedCacheModel.swift +++ b/Model/Cache/FeedCacheModel.swift @@ -27,7 +27,7 @@ struct FeedCacheModel: CacheModel { } func retrieveFeed(account: Account) -> [Video] { - logger.info("retrieving cache for \(account.feedCacheKey)") + logger.debug("retrieving cache for \(account.feedCacheKey)") if let json = try? storage?.object(forKey: account.feedCacheKey), let videos = json.dictionaryValue["videos"] diff --git a/Model/Cache/PlaylistsCacheModel.swift b/Model/Cache/PlaylistsCacheModel.swift index bd4b9ef4..4120edaa 100644 --- a/Model/Cache/PlaylistsCacheModel.swift +++ b/Model/Cache/PlaylistsCacheModel.swift @@ -27,7 +27,7 @@ struct PlaylistsCacheModel: CacheModel { } func retrievePlaylists(account: Account) -> [Playlist] { - logger.info("retrieving cache for \(playlistCacheKey(account))") + logger.debug("retrieving cache for \(playlistCacheKey(account))") if let json = try? storage?.object(forKey: playlistCacheKey(account)), let playlists = json.dictionaryValue["playlists"] diff --git a/Model/Cache/VideosCacheModel.swift b/Model/Cache/VideosCacheModel.swift index 91366920..a3700fd1 100644 --- a/Model/Cache/VideosCacheModel.swift +++ b/Model/Cache/VideosCacheModel.swift @@ -24,7 +24,7 @@ struct VideosCacheModel: CacheModel { } func retrieveVideo(_ cacheKey: String) -> Video? { - logger.info("retrieving cache for \(cacheKey)") + logger.debug("retrieving cache for \(cacheKey)") if let json = try? storage?.object(forKey: cacheKey) { return Video.from(json)