Opened 6 years ago

Closed 6 years ago

#6487 closed defect (fixed)

Installed error handler ignores debug messages

Reported by: sgillies Owned by: warmerdam
Priority: normal Milestone: 2.1.0
Component: default Version: svn-trunk
Severity: normal Keywords: debug cplerror
Cc:

Description

My interpretation of http://www.gdal.org/cpl__error_8h.html#af3ffe7346fddc2e9ad4c62a49788edc4 is that when I set a custom error handler, it will catch debug messages unless I call CPLSetCurrentErrorHandlerCatchDebug(FALSE) to ignore them. But this is not the case: debug messages are ignored by my custom handler unless I call CPLSetCurrentErrorHandlerCatchDebug(TRUE) to catch them. I'd like to see the original behavior (defaulting to TRUE in 2.0 and earlier) restored if possible.

Change History (2)

comment:1 by Even Rouault, 6 years ago

trunk r34108, branches/2.1 r34109 "cpl_error.cpp: initialize gbCatchDebug to true, so that global error handlers set CPLSetErrorHandler() get by default debug messages (#6487)"

comment:2 by Even Rouault, 6 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.