mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
SSH_LOG_WARN: Recategorize loglevels
These warning should be logging when something fatal happens and give information on the error to the user. 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
657d9143d1
commit
5f4347d5e1
@@ -1380,8 +1380,8 @@ int ssh_userauth_publickey_auto(ssh_session session,
|
||||
/* continue */
|
||||
}
|
||||
}
|
||||
SSH_LOG(SSH_LOG_INFO,
|
||||
"Tried every public key, none matched");
|
||||
SSH_LOG(SSH_LOG_WARN,
|
||||
"Access denied: Tried every public key, none matched");
|
||||
SAFE_FREE(session->auth.auto_state);
|
||||
return SSH_AUTH_DENIED;
|
||||
}
|
||||
|
||||
@@ -480,7 +480,7 @@ error:
|
||||
ssh_socket_close(session->socket);
|
||||
session->alive = 0;
|
||||
session->session_state=SSH_SESSION_STATE_ERROR;
|
||||
|
||||
SSH_LOG(SSH_LOG_WARN, "%s", ssh_get_error(session));
|
||||
}
|
||||
|
||||
/** @internal
|
||||
|
||||
@@ -1166,7 +1166,7 @@ ssh_config_parse_line(ssh_session session,
|
||||
keyword, count);
|
||||
break;
|
||||
case SOC_UNSUPPORTED:
|
||||
SSH_LOG(SSH_LOG_INFO, "Unsupported option: %s, line: %d",
|
||||
SSH_LOG(SSH_LOG_RARE, "Unsupported option: %s, line: %d",
|
||||
keyword, count);
|
||||
break;
|
||||
case SOC_UNKNOWN:
|
||||
|
||||
Reference in New Issue
Block a user