Print this page
NEX-966 FM shouldn't spam system console
Reviewed by: Dan Fields <dan.fields@nexenta.com>
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
*** 21,30 ****
--- 21,34 ----
/*
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
*/
+ /*
+ * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
+ */
+
#include <sys/fm/protocol.h>
#include <sys/strlog.h>
#include <sys/log.h>
#include <libscf.h>
*** 311,321 ****
--- 315,329 ----
syslog_emit(hdl, msg);
free(msg);
}
static const fmd_prop_t fmd_props[] = {
+ #ifdef DEBUG
{ "console", FMD_TYPE_BOOL, "true" },
+ #else
+ { "console", FMD_TYPE_BOOL, "false" },
+ #endif
{ "facility", FMD_TYPE_STRING, "LOG_DAEMON" },
{ "gmt", FMD_TYPE_BOOL, "false" },
{ "syslogd", FMD_TYPE_BOOL, "true" },
{ "url", FMD_TYPE_STRING, "http://illumos.org/msg/" },
{ "message_all", FMD_TYPE_BOOL, "false" },