added logging for files that were lacking it. (#66)

This commit is contained in:
XfableX
2016-06-29 05:53:34 +10:00
committed by brindosch
parent fda861a1c1
commit 1faead11c5
2 changed files with 4 additions and 2 deletions

3
libsrc/utils/RgbToRgbw.cpp Normal file → Executable file
View File

@@ -1,5 +1,6 @@
#include <utils/ColorRgb.h>
#include <utils/ColorRgbw.h>
#include <utils/Logger.h>
void Rgb_to_Rgbw(ColorRgb input, ColorRgbw * output, std::string _whiteAlgorithm) {
if (_whiteAlgorithm == "subtract_minimum") {
@@ -18,7 +19,7 @@ void Rgb_to_Rgbw(ColorRgb input, ColorRgbw * output, std::string _whiteAlgorithm
output->white = 0;
}
else {
std::cout << "ERROR: unknown whiteAlgorithm " << _whiteAlgorithm << std::endl;
Error(Logger::getInstance("RGBtoRGBW"), "unknown whiteAlgorithm %s", _whiteAlgorithm.c_str());
}
}