From 8d9d46ca6666910619b56f4799a7bc764cd48607 Mon Sep 17 00:00:00 2001 From: "Bernhard R. Link" Date: Sat, 12 Feb 2011 18:40:11 +0100 Subject: [PATCH] use ssh_log instead of fprintf in ssh_config_parse_file ssh_config_parse_file calls "fprintf(stderr," directly thus ignoring a set log callback. Replacing the print with a call to ssh_log should fix this. Signed-off-by: Andreas Schneider --- src/config.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/config.c b/src/config.c index 4b2c739a..b8b6a0ed 100644 --- a/src/config.c +++ b/src/config.c @@ -327,9 +327,7 @@ int ssh_config_parse_file(ssh_session session, const char *filename) { return 0; } - if (session->log_verbosity) { - fprintf(stderr, "Reading configuration data from %s\n", filename); - } + ssh_log(session, SSH_LOG_RARE, "Reading configuration data from %s", filename); parsing = 1; while (fgets(line, sizeof(line), f)) {