mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 02:39:48 +09:00
SSH_LOG_TRACE: Recategorize loglevels
Do not print out logs when no fatal error happens. This approach is similiar to openssh, when Error/Fatal does not print recoverable error logs. recategorized based on - SSH_LOG_TRACE are debug logs when error happens Signed-off-by: Norbert Pocs <npocs@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
bd1d06f51d
commit
7ea75cda45
@@ -1543,7 +1543,7 @@ SSH_PACKET_CALLBACK(ssh_packet_unimplemented){
|
||||
|
||||
rc = ssh_buffer_unpack(packet, "d", &seq);
|
||||
if (rc != SSH_OK) {
|
||||
SSH_LOG(SSH_LOG_WARNING,
|
||||
SSH_LOG(SSH_LOG_TRACE,
|
||||
"Could not unpack SSH_MSG_UNIMPLEMENTED packet");
|
||||
}
|
||||
|
||||
@@ -1895,7 +1895,7 @@ ssh_packet_set_newkeys(ssh_session session,
|
||||
session->next_crypto->used |= direction;
|
||||
if (session->current_crypto != NULL) {
|
||||
if (session->current_crypto->used & direction) {
|
||||
SSH_LOG(SSH_LOG_WARNING, "This direction isn't used anymore.");
|
||||
SSH_LOG(SSH_LOG_TRACE, "This direction isn't used anymore.");
|
||||
}
|
||||
/* Mark the current requested direction unused */
|
||||
session->current_crypto->used &= ~direction;
|
||||
|
||||
Reference in New Issue
Block a user