mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
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. [originally from svn r6811]
This commit is contained in:
parent
c353c3cc97
commit
1347235754
@ -536,6 +536,9 @@ int main(int argc, char **argv)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logctx = log_init(NULL, &cfg);
|
||||||
|
console_provide_logctx(logctx);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Start up the connection.
|
* Start up the connection.
|
||||||
*/
|
*/
|
||||||
@ -553,9 +556,7 @@ int main(int argc, char **argv)
|
|||||||
fprintf(stderr, "Unable to open connection:\n%s", error);
|
fprintf(stderr, "Unable to open connection:\n%s", error);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
logctx = log_init(NULL, &cfg);
|
|
||||||
back->provide_logctx(backhandle, logctx);
|
back->provide_logctx(backhandle, logctx);
|
||||||
console_provide_logctx(logctx);
|
|
||||||
sfree(realhost);
|
sfree(realhost);
|
||||||
}
|
}
|
||||||
connopen = 1;
|
connopen = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user