File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 6
6
7
7
import Foundation
8
8
import Combine
9
+ import os
9
10
10
11
11
12
class GitHubAPI {
@@ -127,6 +128,10 @@ class GitHubAPI {
127
128
if let token, !token. isEmpty {
128
129
request. setValue ( URLRequest . bearerAuthValue ( token: token) , forHTTPHeaderField: " Authorization " )
129
130
}
131
+
132
+ let logger = Logger ( subsystem: Bundle . main. bundleIdentifier!, category: " application " )
133
+ logger. trace ( " Request: \( method, privacy: . public) \( url. absoluteString, privacy: . public) " )
134
+
130
135
return request
131
136
}
132
137
Original file line number Diff line number Diff line change @@ -42,9 +42,6 @@ class GitHubFeedReader {
42
42
guard let request = GitHubAPI . requestForFeed ( feed: pipeline. feed, token: token) else {
43
43
throw GithHubFeedReaderError . invalidURLError
44
44
}
45
- #if DEBUG
46
- debugPrint ( Date ( ) , " fetching " , request. url ?? " " )
47
- #endif
48
45
guard let newStatus = try await fetchStatus ( request: request) else {
49
46
throw GithHubFeedReaderError . noStatusError
50
47
}
You can’t perform that action at this time.
0 commit comments