From 3938e5e85029f07dca309e2b57070a0928b741aa Mon Sep 17 00:00:00 2001 From: abdallah elhdad Date: Thu, 16 Oct 2025 17:11:52 +0300 Subject: [PATCH] set log level when debug option is increased Signed-off-by: abdallah elhdad Reviewed-by: Jakub Jelen --- src/options.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/options.c b/src/options.c index 001664cb..4730647d 100644 --- a/src/options.c +++ b/src/options.c @@ -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) {