--- smsdaemon/main.cpp 2008/12/08 21:49:49 158 +++ smsdaemon/main.cpp 2008/12/10 22:02:28 175 @@ -1,5 +1,6 @@ #include #include +#include #include "daemon.h" #include "Common.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(); /////////////////////