Skip to content

Commit e439801

Browse files
committed
add missing new lines in logger error messages
Signed-off-by: Łukasz Plewa <[email protected]>
1 parent eb9e8c2 commit e439801

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

source/common/logger/ur_sinks.hpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,17 @@ class Sink {
6565
if (*(++fmt) == '{') {
6666
buffer << *fmt++;
6767
} else {
68-
std::cerr
69-
<< error_prefix
70-
<< "No arguments provided and braces not escaped!";
68+
std::cerr << error_prefix
69+
<< "No arguments provided and braces not escaped!"
70+
<< std::endl;
7171
}
7272
} else if (*fmt == '}') {
7373
if (*(++fmt) == '}') {
7474
buffer << *fmt++;
7575
} else {
7676
std::cerr << error_prefix
77-
<< "Closing curly brace not escaped!";
77+
<< "Closing curly brace not escaped!"
78+
<< std::endl;
7879
}
7980
}
8081
}
@@ -95,7 +96,7 @@ class Sink {
9596
buffer << *fmt++;
9697
} else if (*fmt != '}') {
9798
std::cerr << error_prefix
98-
<< "Only empty braces are allowed!";
99+
<< "Only empty braces are allowed!" << std::endl;
99100
} else {
100101
buffer << arg;
101102
arg_printed = true;
@@ -105,7 +106,8 @@ class Sink {
105106
buffer << *fmt++;
106107
} else {
107108
std::cerr << error_prefix
108-
<< "Closing curly brace not escaped!";
109+
<< "Closing curly brace not escaped!"
110+
<< std::endl;
109111
}
110112
}
111113
}

0 commit comments

Comments
 (0)