Skip to content

Commit

Permalink
Put request logging behind build condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdoe committed May 30, 2024
1 parent b9b6e6d commit c2e5e9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CCMenu/Source/Server Monitor/CCTrayFeedReader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ class CCTrayFeedReader {
do {
// All pipelines have the same URL.
let request = try requestForFeed(feed: pipelines[0].feed)
#if DEBUG
debugPrint(Date(), "fetching", request.url ?? "")
#endif
try await fetchStatus(request: request)
} catch {
for i in 0..<pipelines.count {
Expand Down
2 changes: 2 additions & 0 deletions CCMenu/Source/Server Monitor/GitHubFeedReader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class GitHubFeedReader {
guard let request = GitHubAPI.requestForFeed(feed: pipeline.feed, token: token) else {
throw GithHubFeedReaderError.invalidURLError
}
#if DEBUG
debugPrint(Date(), "fetching", request.url ?? "")
#endif
guard let newStatus = try await fetchStatus(request: request) else {
throw GithHubFeedReaderError.noStatusError
}
Expand Down

0 comments on commit c2e5e9d

Please sign in to comment.