aboutsummaryrefslogtreecommitdiff
path: root/include/hotstuff/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hotstuff/util.h')
-rw-r--r--include/hotstuff/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hotstuff/util.h b/include/hotstuff/util.h
index 25dda70..efec4be 100644
--- a/include/hotstuff/util.h
+++ b/include/hotstuff/util.h
@@ -13,7 +13,7 @@ class Logger: public salticidae::Logger {
void proto(const char *fmt, ...) {
va_list ap;
va_start(ap, fmt);
- write("proto", fmt, ap);
+ write("proto", is_tty() ? salticidae::TTY_COLOR_MAGENTA : nullptr, fmt, ap);
va_end(ap);
}
};