mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
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:
committed by
Jakub Jelen
parent
dd80a56029
commit
3938e5e850
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user