logging migration of blackborder and grabber (#108)

* logging migration of blackborder and grabber

* change to "Debug" for noise blackborder log messages
This commit is contained in:
penfold42
2016-07-12 23:13:06 +10:00
committed by brindosch
parent 49f16ac2e6
commit 7b9b9bcdef
9 changed files with 18 additions and 14 deletions

View File

@@ -11,6 +11,7 @@
#include "AmlogicWrapper.h"
#include "HyperionConfig.h"
#include <utils/Logger.h>
using namespace vlofgren;
@@ -68,7 +69,8 @@ int main(int argc, char ** argv)
int height = argHeight.getValue();
if (width < 160 || height < 160)
{
std::cout << "Minimum width and height is 160" << std::endl;
Warning(Logger::getInstance("AMLOGIC"), "Minimum width and height is 160");
width = std::max(160, width);
height = std::max(160, height);
}
@@ -100,7 +102,7 @@ int main(int argc, char ** argv)
catch (const std::runtime_error & e)
{
// An error occured. Display error and quit
std::cerr << e.what() << std::endl;
Error(Logger::getInstance("AMLOGIC"), "%s", e.what());
return -1;
}
return 0;

View File

@@ -121,7 +121,7 @@ int main(int argc, char ** argv)
catch (const std::runtime_error & e)
{
// An error occured. Display error and quit
std::cerr << e.what() << std::endl;
Error(Logger::getInstance("DISPMANXGRABBER"), "%s", e.what());
return -1;
}

View File

@@ -62,7 +62,7 @@ int main(int argc, char ** argv)
int height = argHeight.getValue();
if (width < 160 || height < 160)
{
std::cout << "Minimum width and height is 160" << std::endl;
Warning(Logger::getInstance("FRAMEBUFFER"), "Minimum width and height is 160");
width = std::max(160, width);
height = std::max(160, height);
}
@@ -94,7 +94,7 @@ int main(int argc, char ** argv)
catch (const std::runtime_error & e)
{
// An error occured. Display error and quit
std::cerr << e.what() << std::endl;
Error(Logger::getInstance("FRAMEBUFFER"), "%s", e.what());
return -1;
}
return 0;

View File

@@ -62,7 +62,7 @@ int main(int argc, char ** argv)
int height = argHeight.getValue();
if (width < 160 || height < 160)
{
std::cout << "Minimum width and height is 160" << std::endl;
Warning(Logger::getInstance("OSXGRABBER"), "Minimum width and height is 160");
width = std::max(160, width);
height = std::max(160, height);
}
@@ -94,7 +94,7 @@ int main(int argc, char ** argv)
catch (const std::runtime_error & e)
{
// An error occured. Display error and quit
std::cerr << e.what() << std::endl;
Error(Logger::getInstance("OSXGRABBER"), "%s", e.what());
return -1;
}
return 0;

View File

@@ -172,7 +172,7 @@ int main(int argc, char** argv)
catch (const std::runtime_error & e)
{
// An error occured. Display error and quit
std::cerr << e.what() << std::endl;
Error(Logger::getInstance("V4L2GRABBER"), "%s", e.what());
return 1;
}

View File

@@ -118,7 +118,7 @@ int main(int argc, char ** argv)
catch (const std::runtime_error & e)
{
// An error occured. Display error and quit
std::cerr << e.what() << std::endl;
Error(Logger::getInstance("X11GRABBER"), "%s", e.what());
return -1;
}