 debug = require 'debug'
 log =
   subleaf: debug 'subleaf'
+  asserts: debug 'asserts'
+  errors: debug 'errors'
 
 class Choice
 

        ret = callback block
        return block if ret
      catch e
        continue
    null


        ret = callback item
        return item if ret
      catch e
        log.errors "#{@treeId} #{@} getItem resulted in %s", e.message
        if e instanceof chai.AssertionError
          log.asserts "#{@treeId} #{@} getItem resulted in %s", e.message
        continue
    null

