console: no color for native windows build

pull/3112/head
Victor Julien 8 years ago
parent 275eb839d1
commit 269cd03a43

@ -806,9 +806,11 @@ static inline SCLogOPIfaceCtx *SCLogInitConsoleOPIface(const char *log_format,
}
iface_ctx->log_level = tmp_log_level;
#ifndef OS_WIN32
if (isatty(fileno(stdout)) && isatty(fileno(stderr))) {
iface_ctx->use_color = TRUE;
}
#endif
return iface_ctx;
}

Loading…
Cancel
Save