Skip to content

Commit 05e332c

Browse files
cod
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
1 parent 225253f commit 05e332c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/NextcloudKit/Log/NKLogFileManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ public final class NKLogFileManager {
161161
// Prepare the console line with emoji prefix and keyword substitution
162162
let emojiPrefix = emojiColored(message)
163163
let visualMessage = message
164-
.replacingOccurrences(of: "[SUCCESS]", with: "🟢")
165-
.replacingOccurrences(of: "[ERROR]", with: "🔴")
164+
.replacingOccurrences(of: "RESPONSE: SUCCESS", with: "🟢")
165+
.replacingOccurrences(of: "RESPONSE: ERROR", with: "🔴")
166166

167167
let consoleLine = "[NKLOG] [\(consoleTimestamp)] \(emojiPrefix)\(visualMessage)"
168168
print(consoleLine)

Sources/NextcloudKit/NKMonitor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ final class NKMonitor: EventMonitor, Sendable {
5858
if let method = request.request?.httpMethod,
5959
let url = request.request?.url?.absoluteString,
6060
let code = response.response?.statusCode {
61-
let response = (200..<300).contains(code) ? "SUCCESS" : "ERROR"
61+
let response = (200..<300).contains(code) ? "RESPONSE: SUCCESS" : "RESPONSE: ERROR"
6262
nkLog(network: "\(code) \(method) \(url) \(response)")
6363
}
6464
case .verbose:

0 commit comments

Comments
 (0)