diff options
Diffstat (limited to 'switchctl.c')
-rw-r--r-- | switchctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/switchctl.c b/switchctl.c index ce32195..adb0682 100644 --- a/switchctl.c +++ b/switchctl.c @@ -398,7 +398,8 @@ int process_cmd_mode(const char* param, int fd, cmd_t **cmd_q, options_t* opt) send_response(fd, "EEE: mode: missing parameter"); } - log_printf(NOTICE, "new mode: %s", opt->mode_ == MODE_MASTER ? "master" : "standby"); + if(old_mode != opt->mode_) + log_printf(NOTICE, "new mode: %s", opt->mode_ == MODE_MASTER ? "master" : "standby"); return 0; } |