diff --git a/common/pgm_base.cpp b/common/pgm_base.cpp index 79794a9923..d9a949f068 100644 --- a/common/pgm_base.cpp +++ b/common/pgm_base.cpp @@ -934,7 +934,9 @@ void PGM_BASE::HandleAssert( const wxString& aFile, int aLine, const wxString& a aCond ); } +#ifndef NDEBUG wxLogError( assertStr ); +#endif #ifdef KICAD_USE_SENTRY if( IsSentryOptedIn() )