duplicating cv::error() message to Android logcat
This commit is contained in:
parent
73f95e59f3
commit
c42c3ebc9c
@ -96,6 +96,10 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ANDROID
|
||||||
|
# include <android/log.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace cv
|
namespace cv
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -554,6 +558,9 @@ void error( const Exception& exc )
|
|||||||
exc.func.c_str() : "unknown function", exc.file.c_str(), exc.line );
|
exc.func.c_str() : "unknown function", exc.file.c_str(), exc.line );
|
||||||
fprintf( stderr, "%s\n", buf );
|
fprintf( stderr, "%s\n", buf );
|
||||||
fflush( stderr );
|
fflush( stderr );
|
||||||
|
# ifdef ANDROID
|
||||||
|
__android_log_print(ANDROID_LOG_ERROR, "cv::error()", "%s", buf);
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if(breakOnError)
|
if(breakOnError)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user