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