From 26f0a7be9285009bcfbb743d61211be059ff8db8 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Wed, 5 Jan 2011 17:36:35 +0200 Subject: [PATCH] =?utf8?q?=D0=9A=D0=BE=D1=81=D0=BC=D0=B5=D1=82=D0=B8=D1=87?= =?utf8?q?=D0=BD=D1=96=20=D0=B2=D0=B8=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=BD=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projects/stargazer/user.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/projects/stargazer/user.cpp b/projects/stargazer/user.cpp index b68c632a..e63d37d3 100644 --- a/projects/stargazer/user.cpp +++ b/projects/stargazer/user.cpp @@ -1158,7 +1158,6 @@ if (SendMessage(*msg)) if (store->AddMessage(msg, login)) { errorStr = store->GetStrError(); - STG_LOGGER & WriteServLog = GetStgLogger(); WriteServLog("Error adding message %s", errorStr.c_str()); WriteServLog("%s", store->GetStrError().c_str()); return -1; @@ -1179,7 +1178,6 @@ else if (store->AddMessage(msg, login)) { errorStr = store->GetStrError(); - STG_LOGGER & WriteServLog = GetStgLogger(); WriteServLog("Error adding message %s", errorStr.c_str()); WriteServLog("%s", store->GetStrError().c_str()); return -1; @@ -1266,7 +1264,11 @@ while (it != messages.end()) if (it->header.repeat < 0) { printfd(__FILE__, "DelMessage\n"); - store->DelMessage(it->header.id, login); + if (store->DelMessage(it->header.id, login)) + { + WriteServLog("Error deleting message: '%s'", store->GetStrError().c_str()); + printfd(__FILE__, "Error deleting message: '%s'\n", store->GetStrError().c_str()); + } messages.erase(it++); } else @@ -1279,7 +1281,8 @@ while (it != messages.end()) #endif if (store->EditMessage(*it, login)) { - printfd(__FILE__, "EditMessage Error %s\n", store->GetStrError().c_str()); + WriteServLog("Error modifying message: '%s'", store->GetStrError().c_str()); + printfd(__FILE__, "Error modifying message: '%s'\n", store->GetStrError().c_str()); } ++it; } -- 2.44.2