Commit 1cd5cfbb authored by Matthieu Kermagoret's avatar Matthieu Kermagoret
Browse files

Connector SSH: fix logging object life time.

parent 9abf75e7
......@@ -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.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment