Skip to content
Snippets Groups Projects
Commit 1cd5cfbb authored by Matthieu Kermagoret's avatar Matthieu Kermagoret
Browse files

Connector SSH: fix logging object life time.

parent 9abf75e7
Branches ssh_with_clib
No related tags found
No related merge requests found
......@@ -60,11 +60,13 @@ int main() {
// Return value.
int retval(EXIT_FAILURE);
// Log object.
logging::file log_file(stdout);
try {
// Initializations.
logging::engine::load();
multiplexer::load();
logging::file log_file(stdout);
logging::engine::instance().add(&log_file, -1, 63);
#if LIBSSH2_VERSION_NUM >= 0x010205
// Initialize libssh2.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment