From: Naoki Kambe Date: Mon, 18 Mar 2013 11:37:13 +0000 (+0900) Subject: [2252] replace the log message XFRIN_RECEIVED_COMMAND to the more general id XFRIN_RE... X-Git-Tag: bind10-1.2.0beta1-release~474^2~4^2~51 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0f2acac75969ee9773b3ec3eb584e017cbfb117;p=thirdparty%2Fkea.git [2252] replace the log message XFRIN_RECEIVED_COMMAND to the more general id XFRIN_RECEIVED_COMMAND with the command name --- diff --git a/src/bin/xfrin/xfrin.py.in b/src/bin/xfrin/xfrin.py.in index 76c2665462..a4e84dd21b 100755 --- a/src/bin/xfrin/xfrin.py.in +++ b/src/bin/xfrin/xfrin.py.in @@ -1514,6 +1514,7 @@ class Xfrin: th.join() def command_handler(self, command, args): + logger.debug(DBG_XFRIN_TRACE, XFRIN_RECEIVED_COMMAND, command) answer = create_answer(0) try: if command == 'shutdown': @@ -1589,8 +1590,6 @@ class Xfrin: # b10-stats daemon is periodically asking to the # b10-xfrin daemon. answer = create_answer(0, self._counters.get_statistics()) - logger.debug(DBG_XFRIN_TRACE, XFRIN_RECEIVED_GETSTATS_COMMAND, - str(answer)) else: answer = create_answer(1, 'unknown command: ' + command) diff --git a/src/bin/xfrin/xfrin_messages.mes b/src/bin/xfrin/xfrin_messages.mes index 6f9d9702a9..7160d1752b 100644 --- a/src/bin/xfrin/xfrin_messages.mes +++ b/src/bin/xfrin/xfrin_messages.mes @@ -275,6 +275,5 @@ there's some issue with it. It might be correct, but it should be checked and possibly fixed on the remote server. The problem is described in the message. The problem does not stop the zone from being used. -% XFRIN_RECEIVED_GETSTATS_COMMAND received command to send statistics data: %1 -The xfrin daemon received a command on the command channel that -statistics data should be sent to the stats daemon. +% XFRIN_RECEIVED_COMMAND received command: %1 +The xfrin daemon received a command on the command channel. diff --git a/tests/lettuce/features/xfrin_notify_handling.feature b/tests/lettuce/features/xfrin_notify_handling.feature index a411a6ff85..80e5258faa 100644 --- a/tests/lettuce/features/xfrin_notify_handling.feature +++ b/tests/lettuce/features/xfrin_notify_handling.feature @@ -79,7 +79,7 @@ Feature: Xfrin incoming notify handling # wait until the last stats requesting is finished When I query statistics zones of bind10 module Xfrin with cmdctl wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST - wait for new bind10 stderr message XFRIN_RECEIVED_GETSTATS_COMMAND + wait for new bind10 stderr message XFRIN_RECEIVED_COMMAND last bindctl output should not contain "error" When I query statistics zones of bind10 module Xfrin with cmdctl @@ -175,7 +175,7 @@ Feature: Xfrin incoming notify handling # wait until the last stats requesting is finished When I query statistics zones of bind10 module Xfrin with cmdctl wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST - wait for new bind10 stderr message XFRIN_RECEIVED_GETSTATS_COMMAND + wait for new bind10 stderr message XFRIN_RECEIVED_COMMAND last bindctl output should not contain "error" When I query statistics zones of bind10 module Xfrin with cmdctl @@ -282,7 +282,7 @@ Feature: Xfrin incoming notify handling # wait until the last stats requesting is finished When I query statistics zones of bind10 module Xfrin with cmdctl wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST - wait for new bind10 stderr message XFRIN_RECEIVED_GETSTATS_COMMAND + wait for new bind10 stderr message XFRIN_RECEIVED_COMMAND last bindctl output should not contain "error" When I query statistics zones of bind10 module Xfrin with cmdctl @@ -387,7 +387,7 @@ Feature: Xfrin incoming notify handling # wait until the last stats requesting is finished When I query statistics zones of bind10 module Xfrin with cmdctl wait for new bind10 stderr message STATS_SEND_STATISTICS_REQUEST - wait for new bind10 stderr message XFRIN_RECEIVED_GETSTATS_COMMAND + wait for new bind10 stderr message XFRIN_RECEIVED_COMMAND last bindctl output should not contain "error" When I query statistics zones of bind10 module Xfrin with cmdctl