Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Sources/SwiftSMTP/DataSender.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
**/

import Foundation
import LoggerAPI

// Used to send the content of an email--headers, text, and attachments.
// Should only be invoked after sending the `DATA` command to the server.
Expand Down Expand Up @@ -200,13 +201,13 @@ extension DataSender {
private extension DataSender {
// Write `text` to the socket.
func send(_ text: String) throws {
print("SEND: \(text)")
Log.debug("SEND: \(text)")
try socket.write(text)
}

// Write `data` to the socket.
func send(_ data: Data) throws {
print("SEND: data \(data.count) bytes")
Log.debug("SEND: data \(data.count) bytes")
try socket.write(data)
}
}
Expand Down