Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
centreon-connectors
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
centreon
centreon-connectors
Commits
1cd5cfbb
Commit
1cd5cfbb
authored
13 years ago
by
Matthieu Kermagoret
Browse files
Options
Downloads
Patches
Plain Diff
Connector SSH: fix logging object life time.
parent
9abf75e7
Branches
ssh_with_clib
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ssh/src/main.cc
+3
-1
3 additions, 1 deletion
ssh/src/main.cc
with
3 additions
and
1 deletion
ssh/src/main.cc
+
3
−
1
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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment