BIND 10 #1892: Check mode of logger

BIND 10 Development do-not-reply at isc.org
Tue May 1 07:06:53 UTC 2012


#1892: Check mode of logger
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:  muks
  vorner                             |                Status:  assigned
                       Type:  task   |             Milestone:
                   Priority:         |  Sprint-20120501
  medium                             |            Resolution:
                  Component:         |             Sensitive:  0
  logging                            |           Sub-Project:  Core
                   Keywords:         |  Estimated Difficulty:  5
            Defect Severity:  N/A    |           Total Hours:  0
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
Changes (by muks):

 * owner:   => muks
 * status:  new => assigned


Comment:

 Currently the placeholders are replaced in this manner:

 LOG_DEBUG(...,"$1 $2").arg("foo").arg("bar")

 Will:

 1. call arg() with "$1 $2", returning "foo $2"
 2. call arg() with "foo $2" which returns "foo bar"

 We can check if there are fewer $ placeholders than the number of arg()
 [there is already such a check], but we can't check if there are more $
 placeholders as arg() only knows about replacing one argument and returns
 a Formatter on which arg() can be called again.

 Comments?

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


More information about the bind10-tickets mailing list