From 7e6bac1be69102af4a61bf048bce2140b9408cab Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Fri, 8 Jan 2016 11:10:34 +0900 Subject: [PATCH] Display a couple of repetitive log messages in verbose mode only --- config.c | 2 +- dbutils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.c b/config.c index 0a4b08af..52600c5d 100644 --- a/config.c +++ b/config.c @@ -244,7 +244,7 @@ parse_config(t_configuration_options *options) */ if (config_file_found == false) { - log_notice(_("no configuration file provided and no default file found - " + log_verbose(LOG_NOTICE, _("no configuration file provided and no default file found - " "continuing with default values\n")); return true; } diff --git a/dbutils.c b/dbutils.c index 41dac2b6..1df56738 100644 --- a/dbutils.c +++ b/dbutils.c @@ -308,7 +308,7 @@ get_master_node_id(PGconn *conn, char *cluster) } else if (PQntuples(res) == 0) { - log_warning(_("get_master_node_id(): no active primary found\n")); + log_verbose(LOG_WARNING, _("get_master_node_id(): no active primary found\n")); retval = NODE_NOT_FOUND; } else