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-collect
Commits
1d8a74c8
Commit
1d8a74c8
authored
May 25, 2022
by
rem31
Browse files
fix(engine/ext-command): no break on long output
parent
43321bc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
engine/src/commands/commands.cc
View file @
1d8a74c8
...
...
@@ -22,9 +22,6 @@
#include "com/centreon/engine/commands/processing.hh"
#include <sys/time.h>
#include "absl/strings/str_replace.h"
#include "absl/strings/str_split.h"
#include "absl/strings/string_view.h"
#include "com/centreon/engine/broker.hh"
#include "com/centreon/engine/checks/checker.hh"
#include "com/centreon/engine/commands/processing.hh"
...
...
engine/src/utils.cc
View file @
1d8a74c8
...
...
@@ -281,8 +281,6 @@ void parse_check_output(std::string const& buffer,
* end_line is the position of the line end. */
size_t
start_line
{
0
},
end_line
,
pos_line
;
int
line_number
{
1
};
log_v2
::
checks
()
->
debug
(
"Parsing check output start output {} find {}"
,
buffer
,
buffer
.
find
(
"
\n
"
,
start_line
));
while
(
!
eof
)
{
if
(
newlines_are_escaped
&&
(
pos_line
=
buffer
.
find
(
"
\\
n"
,
start_line
))
!=
std
::
string
::
npos
)
{
...
...
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