Skip to content

Commit

Permalink
Fixed the logics. Do not print errors from C to stderr unless DLITE_P…
Browse files Browse the repository at this point in the history
…YDEBUG= is defined. (#933)
  • Loading branch information
jesper-friis authored Aug 22, 2024
1 parent 6f38fb4 commit c560ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dlite-misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ static void dlite_err_handler(const ErrRecord *record)
{
#ifdef WITH_PYTHON
if (record->level != errLevelError ||
!getenv("DLITE_PYDEBUG") ||
getenv("DLITE_PYDEBUG") ||
!dlite_err_ignored_get(record->eval))
err_default_handler(record);
#else /* WITH_PYTHON */
Expand Down

0 comments on commit c560ea2

Please sign in to comment.