melib/imap: hide LOGIN from debug log
parent
ce559b05d7
commit
e556191bab
|
@ -475,9 +475,13 @@ impl ImapStream {
|
||||||
self.stream.flush().await?;
|
self.stream.flush().await?;
|
||||||
match self.protocol {
|
match self.protocol {
|
||||||
ImapProtocol::IMAP { .. } => {
|
ImapProtocol::IMAP { .. } => {
|
||||||
debug!("sent: M{} {}", self.cmd_id - 1, unsafe {
|
if !command.starts_with(b"LOGIN") {
|
||||||
std::str::from_utf8_unchecked(command)
|
debug!("sent: M{} {}", self.cmd_id - 1, unsafe {
|
||||||
});
|
std::str::from_utf8_unchecked(command)
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
debug!("sent: M{} LOGIN ..", self.cmd_id - 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ImapProtocol::ManageSieve => {}
|
ImapProtocol::ManageSieve => {}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue