Skip to content

Commit

Permalink
added loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
kkonteh97 committed Apr 18, 2024
1 parent 76f546c commit e9d0076
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Sources/SwiftOBD2/Communication/bleManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ class BLEManager: NSObject, CommProtocol {

// remove the last line
lines.removeLast()
// #if DEBUG
// logger.debug("Response: \(lines)")
// #endif
#if DEBUG
logger.debug("Response: \(lines)")
#endif

if sendMessageCompletion != nil {
if lines[0].uppercased().contains("NO DATA") {
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftOBD2/elm327.swift
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class ELM327 {
} else {
print("Invalid response: \(response)")
logger.error("Invalid response: \(response)")
throw SetupError.invalidResponse(message: "message: \(message), \(response.first)")
throw SetupError.invalidResponse(message: "message: \(message), \(String(describing: response.first))")
}
}

Expand Down

0 comments on commit e9d0076

Please sign in to comment.