@@ -69,11 +69,11 @@ bool LSLInletThread::updateBuffer()
69
69
}
70
70
catch (const std::runtime_error &re)
71
71
{
72
- std::cout << " Failed to read data samples with runtime error: " << re.what () << std::endl ;
72
+ LOGE ( " Failed to read data samples with runtime error: " , re.what ()) ;
73
73
}
74
74
catch (const std::exception &ex)
75
75
{
76
- std::cout << " Failed to read data samples with exception: " << ex.what () << std::endl ;
76
+ LOGE ( " Failed to read data samples with runtime exception: " , ex.what ()) ;
77
77
}
78
78
79
79
if (multiplexed_samples_read <= 0 )
@@ -177,11 +177,11 @@ void LSLInletThread::readMarkers(std::size_t samples_to_read)
177
177
}
178
178
catch (const std::runtime_error &re)
179
179
{
180
- std::cout << " Failed to read markers with runtime error: " << re.what () << std::endl ;
180
+ LOGE ( " Failed to read markers with runtime error: " , re.what ()) ;
181
181
}
182
182
catch (const std::exception &ex)
183
183
{
184
- std::cout << " Failed to read markers with exception: " << ex.what () << std::endl ;
184
+ LOGE ( " Failed to read markers with exception: " , ex.what ()) ;
185
185
}
186
186
}
187
187
@@ -407,12 +407,12 @@ bool LSLInletThread::setMarkersMappingPath(std::string filePath)
407
407
}
408
408
catch (const std::runtime_error &re)
409
409
{
410
- std::cout << " Failed to read markers mapping file with runtime error: " << re.what () << std::endl ;
410
+ LOGE ( " Failed to read markers mapping file with runtime error: " , re.what ()) ;
411
411
return false ;
412
412
}
413
413
catch (const std::exception &ex)
414
414
{
415
- std::cout << " Failed to read markers mapping file with exception: " << ex.what () << std::endl ;
415
+ LOGE ( " Failed to read markers mapping file with runtime exception: " , ex.what ()) ;
416
416
return false ;
417
417
}
418
418
0 commit comments