From de7943dad799159804b607eeb586ef0a2f3b2e3c Mon Sep 17 00:00:00 2001 From: masakih Date: Wed, 26 Jul 2017 01:22:46 +0900 Subject: [PATCH] =?utf8?q?=E3=83=87=E3=83=90=E3=83=83=E3=82=B0=E3=83=AD?= =?utf8?q?=E3=82=B0=E3=81=AE=E3=81=9F=E3=82=81=E3=81=A0=E3=81=91=E3=81=AE?= =?utf8?q?=E5=87=A6=E7=90=86=E3=82=92=E5=BF=85=E8=A6=81=E3=81=AA=E6=99=82?= =?utf8?q?=E3=81=AE=E3=81=BF=E5=AE=9F=E8=A1=8C=E3=81=99=E3=82=8B=E3=82=88?= =?utf8?q?=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- KCD/CustomHTTPProtocol.swift | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/KCD/CustomHTTPProtocol.swift b/KCD/CustomHTTPProtocol.swift index 356eeb7f..b9d7636b 100644 --- a/KCD/CustomHTTPProtocol.swift +++ b/KCD/CustomHTTPProtocol.swift @@ -189,14 +189,16 @@ final class CustomHTTPProtocol: URLProtocol { use(cache) - // TODO: Debug.excuteに変更する - if let name = request.url?.lastPathComponent { + Debug.excute(level: .full) { - Debug.print("Use cache for", name, level: .full) - - } else { - - Debug.print("Use cache", level: .full) + if let name = request.url?.lastPathComponent { + + print("Use cache for", name) + + } else { + + print("Use cache") + } } return -- 2.11.0