More logging migration. (#74)

Cleaned up old commented out printf statements.

The piblaster stuff probably needs to be moved out of the devicefactory but Ill have to do that later
This commit is contained in:
penfold42
2016-06-30 00:49:05 +10:00
committed by brindosch
parent 6327a38582
commit faf5110558
3 changed files with 4 additions and 16 deletions

View File

@@ -226,7 +226,7 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
const Json::Value gpioMapping = deviceConfig.get("gpiomap", Json::nullValue);
if (assignment.length() > 0) {
std::cout << "ERROR: Sorry, the configuration syntax has changed in this version." << std::endl;
Error(log, "Piblaster: The piblaster configuration syntax has changed in this version.");
exit(EXIT_FAILURE);
}
if (! gpioMapping.isNull() ) {
@@ -235,7 +235,7 @@ LedDevice * LedDeviceFactory::construct(const Json::Value & deviceConfig)
device = devicePiBlaster;
} else {
std::cout << "ERROR: no gpiomap defined." << std::endl;
Error(log, "Piblaster: no gpiomap defined.");
exit(EXIT_FAILURE);
}
}