Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-3904

"Falling back to malloc for counters" not managed by the logging handler

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.17.5
    • Affects Version/s: 1.16.0
    • Component/s: Logging
    • None

      I'm using the C driver in a program. I have set my own logging handler function (as described in http://mongoc.org/libmongoc/current/logging.html) to avoid printing anything in standard output (my function writes to a log file instead that standard output).

      However, I'm still getting this kind of warning in my programs output:

      2021/02/04 22:33:32.0740: [ 6745]: WARNING: mongoc: Falling back to malloc for counters.

      Should I understand that kind of "Failling back to malloc for counters" warning are not managed by the logging handler and always go to standard output? Or should they and I'm doing something wrong in my program?

      (I have seen issue https://jira.mongodb.org/browse/CDRIVER-1504, which provides a solution to disable "Failling back to malloc for counters" warning. However, note that in my case I want these warning... but managed properly by my logging handler instead that printed in standard output)

            Assignee:
            clyde.bazile@mongodb.com Clyde Bazile III (Inactive)
            Reporter:
            fermin.galanmarquez@telefonica.com Fermín Galán
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: