Skip to content

Commit

Permalink
Debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasstrba committed Apr 15, 2024
1 parent cc8d155 commit aaa6fbe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DuckDuckGo/PasswordManager/Bitwarden/Model/BWManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,12 @@ extension BWManager: BWCommunicatorDelegate {
}

func bitwardenCommunicator(_ bitwardenCommunicator: BWCommunication, didReceiveMessageData messageData: Data) {

//TODO REMOVE
print("RECEIVED!----------------------")
print(String(data: messageData, encoding: .utf8))

Check warning on line 610 in DuckDuckGo/PasswordManager/Bitwarden/Model/BWManager.swift

View workflow job for this annotation

GitHub Actions / Export Notarized App

expression implicitly coerced from 'String?' to 'Any'
print("----------------------")

guard let response = BWResponse(from: messageData) else {
logOrAssertionFailure("BWManager: Can't decode the message")
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ final class BWCommunicator: BWCommunication {
return
}

//TODO REMOVE
print("SENT!----------------------")
print(String(data: messageData, encoding: .utf8))

Check warning on line 117 in DuckDuckGo/PasswordManager/Bitwarden/Services/BWCommunicator.swift

View workflow job for this annotation

GitHub Actions / Export Notarized App

expression implicitly coerced from 'String?' to 'Any'
print("----------------------")

// Prefix with the length of data
var messageDataCount = UInt32(messageData.count)
let messagePrefix = Data(bytes: &messageDataCount, count: MemoryLayout.size(ofValue: messageDataCount))
Expand Down

0 comments on commit aaa6fbe

Please sign in to comment.