From 1626d1698ddb84c7c0808f180db4dc4ae7ee735c Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 27 Aug 2006 08:34:04 +0000 Subject: [PATCH] Call console_provide_logctx _before_ initialising the back end, so that logevent() will go to stderr in -v mode even during the back end init function. git-svn-id: svn://svn.tartarus.org/sgt/putty@6811 cda61777-01e9-0310-a592-d414129be87e --- windows/winplink.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/windows/winplink.c b/windows/winplink.c index 16351ae9..c85a6075 100644 --- a/windows/winplink.c +++ b/windows/winplink.c @@ -536,6 +536,9 @@ int main(int argc, char **argv) return 1; } + logctx = log_init(NULL, &cfg); + console_provide_logctx(logctx); + /* * Start up the connection. */ @@ -553,9 +556,7 @@ int main(int argc, char **argv) fprintf(stderr, "Unable to open connection:\n%s", error); return 1; } - logctx = log_init(NULL, &cfg); back->provide_logctx(backhandle, logctx); - console_provide_logctx(logctx); sfree(realhost); } connopen = 1; -- 2.11.0