BIND 10 #1395: python isc.datasrc should be usable without logging

BIND 10 Development do-not-reply at isc.org
Sun Nov 20 19:51:12 UTC 2011


#1395: python isc.datasrc should be usable without logging
-------------------------------------+-------------------------------------
            Reporter:  jinmei        |                        Owner:
                Type:  defect        |                       Status:  new
            Priority:  major         |                    Milestone:  Next-
           Component:  logging       |  Sprint-Proposed
           Sensitive:  0             |                     Keywords:
         Sub-Project:  Core          |              Defect Severity:  N/A
Estimated Difficulty:  0             |  Feature Depending on Ticket:
         Total Hours:  0             |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------
 See src/bin/xfrout/tests/testdata/creatediff.py of trac1371
 (or master when merged).  If we don't import isc.org or call
 isc.log.init(), it fails:

 {{{
 Traceback (most recent call last):
   File "creatediff.py", line 58, in <module>
     '{ "database_file": "test.sqlite3" }')
 isc.datasrc.Error: Failed to create DataSourceClient of type
 sqlite3:Unknown uncaught exception from sqlite3 createInstance: Error
 creating sqlite3 datasource: attempt to access logging function before
 logging has been initialized
 }}}

 even though this script doesn't use any logging in it.  This is
 incovenient.
 I believe generic BIND 10 libraries should be usable without logging
 setup.

 I'm not sure if it's specific to isc.datasrc or common for other cases
 such as isc.acl (not tested).  But if it's the latter, the same comment
 applies to them, too.

-- 
Ticket URL: <http://bind10.isc.org/ticket/1395>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list