OSDN Git Service
(root)
/
kcd
/
KCD.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c356b3
)
デバッグログのためだけの処理を必要な時のみ実行するようにした
author
masakih
<masakih@users.sourceforge.jp>
Tue, 25 Jul 2017 16:22:46 +0000
(
01:22
+0900)
committer
masakih
<masakih@users.sourceforge.jp>
Tue, 25 Jul 2017 16:22:46 +0000
(
01:22
+0900)
KCD/CustomHTTPProtocol.swift
patch
|
blob
|
history
diff --git
a/KCD/CustomHTTPProtocol.swift
b/KCD/CustomHTTPProtocol.swift
index
356eeb7
..
b9d7636
100644
(file)
--- 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