BIND 10 #760: Conversion of cmdctl to use the new logging interface

BIND 10 Development do-not-reply at isc.org
Wed Jun 29 19:21:34 UTC 2011


#760: Conversion of cmdctl to use the new logging interface
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:  jinmei
  stephen                            |                Status:  reviewing
                       Type:         |             Milestone:
  enhancement                        |  Sprint-20110712
                   Priority:  major  |            Resolution:
                  Component:         |             Sensitive:  0
  logging                            |           Sub-Project:  DNS
                   Keywords:         |  Estimated Difficulty:  2.0
            Defect Severity:  N/A    |           Total Hours:  0
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------

Comment (by jinmei):

 - I noticed minor inconsistency about whether to capitalize the first
   word or not, see, e.g.:
 {{{
 % CMDCTL_NO_SUCH_USER username not found in user database: %1
 ...
 % CMDCTL_SEND_COMMAND Sending command %1 to module %2
 }}}

 - Like the xfrout case, there may be mapping inconsistency between the
   .mes and .py files.  I've not found one myself, but haven't
   performed a comprehensive check either.

 - CMDCTL_COMMAND_SENT: looks like it should indicate an event where
   the message 'has been' sent, not 'is being' sent.  At least the
   description is exactly the same as that for CMDCTL_SEND_COMMAND,
   which seems odd.

 - is it okay to simply remove this? (or is CMDCTL_COMMAND_SENT
   supposed to be the replacement?)
 {{{
 -        if self._verbose:
 -            self.log_info("Finish send command '%s' to module '%s'" %
 (command_name, module_name))
 -
 }}}

 - CMDCTL_SSL_ERROR_USER_DENIED: the ID name and the short description
   may have to be revised, because the error may be local (i.e. the
   CmdctlException case).  The current naming and description seem to
   indicate errors happening within SSL.

 - CMDCTL_CC_SESSION_ERROR: hardcoding 'msgq' might be fragile, as it's
   quite likely to be renamed pretty soon.  But I'd leave it to you
   whether to do anything about that.

-- 
Ticket URL: <http://bind10.isc.org/ticket/760#comment:6>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list