projects
/
oweals
/
dinit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad1821f
)
Minor refactoring
author
Davin McCall
<davmac@davmac.org>
Sat, 11 Jun 2016 10:06:54 +0000
(11:06 +0100)
committer
Davin McCall
<davmac@davmac.org>
Sat, 11 Jun 2016 10:06:54 +0000
(11:06 +0100)
src/dinit-log.cc
patch
|
blob
|
history
diff --git
a/src/dinit-log.cc
b/src/dinit-log.cc
index af7b1d58ded382ed1ff09b0ed9093d1e4ab417be..2bafd6bc3998855069787c510754c8fd4a4132de 100644
(file)
--- a/
src/dinit-log.cc
+++ b/
src/dinit-log.cc
@@
-259,12
+259,7
@@
template <typename ... T> static void do_log(T ... args) noexcept
int amount = sum_length(args...);
if (log_stream[DLOG_CONS].get_free() >= amount) {
append(log_stream[DLOG_CONS], args...);
-
- bool was_first = (log_stream[DLOG_CONS].current_index == 0);
- log_stream[DLOG_CONS].current_index += amount;
- if (was_first && log_to_console) {
- log_stream[DLOG_CONS].setEnabled(&eventLoop, true);
- }
+ log_stream[DLOG_CONS].commit_msg();
}
else {
// TODO mark a discarded message