Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
centreon
centreon-connectors
Commits
1cd5cfbb
Commit
1cd5cfbb
authored
Dec 28, 2011
by
Matthieu Kermagoret
Browse files
Connector SSH: fix logging object life time.
parent
9abf75e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
ssh/src/main.cc
View file @
1cd5cfbb
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment