]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1790] Don't use the same log message id twice
authorMukund Sivaraman <muks@isc.org>
Thu, 3 May 2012 04:52:28 +0000 (10:22 +0530)
committerMukund Sivaraman <muks@isc.org>
Mon, 14 May 2012 17:07:33 +0000 (22:37 +0530)
src/bin/xfrin/xfrin.py.in
src/bin/xfrin/xfrin_messages.mes

index 71da0e951cb508999bb95f540ead6b35152fe7f8..3197e04ec23628e0840690aa1c136b807c899f59 100755 (executable)
@@ -1554,8 +1554,8 @@ class Xfrin:
                     dclass = RRClass(d["class"])
                 else:
                     dclass = RRClass("IN")
-            except InvalidRRType as err:
-                logger.info(XFRIN_AUTH_CONFIG_ERROR, str(err))
+            except InvalidRRClass as err:
+                logger.info(XFRIN_AUTH_CONFIG_RRCLASS_ERROR, str(err))
                 continue
 
             if d["type"].lower() == "memory" and dclass == zone_class:
@@ -1565,7 +1565,7 @@ class Xfrin:
                     try:
                         name = Name(zone["origin"])
                     except (EmptyLabel, TooLongLabel, BadLabelType, BadEscape, TooLongName, IncompleteName):
-                        logger.info(XFRIN_AUTH_CONFIG_ERROR, str(err))
+                        logger.info(XFRIN_AUTH_CONFIG_NAME_PARSER_ERROR, str(err))
                         continue
 
                     if zone["filetype"].lower() == "sqlite3" and name == zone_name:
index 388159e3fe9dc013f0cce976fd554782419b0fed..60d7c9c8e9a3429a2c86ce278d76c7a01bb1850f 100644 (file)
@@ -121,8 +121,11 @@ likely means that the msgq daemon has quit or was killed.
 There was a problem sending a message to b10-auth. This most likely
 means that the msgq daemon has quit or was killed.
 
-% XFRIN_AUTH_CONFIG_ERROR Error parsing Auth configuration: %1
-There was an error when parsing Auth configuration.
+% XFRIN_AUTH_CONFIG_RRCLASS_ERROR Invalid RRClass when parsing Auth configuration: %1
+There was an invalid RR class when parsing Auth configuration.
+
+% XFRIN_AUTH_CONFIG_NAME_PARSER_ERROR Invalid name when parsing Auth configuration: %1
+There was an invalid name when parsing Auth configuration.
 
 % XFRIN_AUTH_LOADZONE sending Auth loadzone for origin=%1, class=%2, datasrc=%3
 There was a successful zone transfer, and the zone is served by b10-auth