--- smsdaemon/main.cpp 2008/12/08 21:28:40 157 +++ smsdaemon/main.cpp 2008/12/10 22:02:28 175 @@ -1,8 +1,9 @@ #include #include +#include #include "daemon.h" -#include "common.h" +#include "Common.h" #include "Logger.h" #include "ModemTransceiver.h" @@ -32,7 +33,7 @@ Common* cmn = Common::instance(); ConfigFile* config = cmn->GetConfigfile(); - port = new SerialPort ( config->GetValue("smsdaemon","serialport") ); + port = new SerialPort ( config->GetValue("gsmmodem","serialport") ); try { port->Open( SerialPort::BAUD_9600, @@ -84,9 +85,11 @@ bool res = config->Open( cmn->configFilePath ) ; if (!res) { - Logger::logMessage(string("Could not open config file:") + cmn->configFilePath); + cout << "Could not open config file:" << cmn->configFilePath << endl; return 1; } + + Logger::initLog(); /////////////////////