diff --git a/src/UnitTests/unit_tests.cpp b/src/UnitTests/unit_tests.cpp index 4c95238b..6be39fa2 100644 --- a/src/UnitTests/unit_tests.cpp +++ b/src/UnitTests/unit_tests.cpp @@ -151,13 +151,15 @@ int main(int argc, char** argv) { RETURN1 } LOGINFO("ModelsTimeToLoad OK"); - + + LOGINFO("All tests have executed successfully.\n\r"); } catch (std::exception& e) { + // Also use printf in case the logger has not been initialised properly printf("*** Exception thrown during unit tests: %s\n\r", e.what()); + LOGERROR("*** Exception thrown during unit tests: " + std::string(e.what())); RETURN1 } - LOGINFO("All tests have executed successfully.\n\r"); #ifdef __ANDROID__ while(appActive) {