Commit 1995b1a0 authored by Andrey Pavlenko's avatar Andrey Pavlenko

duplicating cv::error() message to Android logcat

parent 73f720d4
......@@ -96,6 +96,10 @@
#endif
#endif
#ifdef ANDROID
# include <android/log.h>
#endif
namespace cv
{
......@@ -556,6 +560,9 @@ void error( const Exception& exc )
exc.func.c_str() : "unknown function", exc.file.c_str(), exc.line );
fprintf( stderr, "%s\n", buf );
fflush( stderr );
# ifdef ANDROID
__android_log_print(ANDROID_LOG_ERROR, "cv::error()", "%s", buf);
# endif
}
if(breakOnError)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment