set log level when debug option is increased

Signed-off-by: abdallah elhdad <abdallahselhdad@gmail.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
abdallah elhdad
2025-10-16 17:11:52 +03:00
committed by Jakub Jelen
parent dd80a56029
commit 3938e5e850

View File

@@ -1718,6 +1718,7 @@ int ssh_options_getopt(ssh_session session, int *argcptr, char **argv)
break;
case 'v':
debuglevel++;
ssh_set_log_level(debuglevel);
break;
case 'r':
break;
@@ -1783,8 +1784,6 @@ int ssh_options_getopt(ssh_session session, int *argcptr, char **argv)
optind++;
}
ssh_set_log_level(debuglevel);
optind = saveoptind;
if(!cont) {