summaryrefslogtreecommitdiff
path: root/server/src/database.cc
diff options
context:
space:
mode:
authordeva <deva>2010-07-05 09:01:54 +0000
committerdeva <deva>2010-07-05 09:01:54 +0000
commitfbba835d7efaa4ee1d28bf5c7e2232e53d84af5e (patch)
tree5b71566f174143fea11e21e0c034bd6a1026c03d /server/src/database.cc
parent71318f4e56dd1467b071404c61f686745cf3dfc4 (diff)
Remove PRACRO_ prefix from debug macros.
Diffstat (limited to 'server/src/database.cc')
-rw-r--r--server/src/database.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/server/src/database.cc b/server/src/database.cc
index 47cd877..81b495f 100644
--- a/server/src/database.cc
+++ b/server/src/database.cc
@@ -39,19 +39,21 @@ Database::Database(std::string _backend, std::string _host, std::string _port, s
dao = NULL;
#ifndef WITHOUT_DB
if(_backend == "pgsql") {
- PRACRO_DEBUG(db, "construct(%s, %s, %s, %s, %s)\n", _host.c_str(), _port.c_str(), _user.c_str(), _passwd.c_str(), _dbname.c_str());
+ DEBUG(db, "construct(%s, %s, %s, %s, %s)\n",\
+ _host.c_str(), _port.c_str(), _user.c_str(),
+ _passwd.c_str(), _dbname.c_str());
dao = new PracroDAOPgsql(_host, _port, _user, _passwd, _dbname);
return;
}
#endif/*WITHOUT_DB*/
if(_backend == "testdb") {
- PRACRO_DEBUG(db, "Running with 'testdb'\n");
+ DEBUG(db, "Running with 'testdb'\n");
Data data;
dao = new PracroDAOTest(data, true);
return;
}
- PRACRO_ERR(db, "Cannot find database backend \"%s\"", _backend.c_str());
+ ERR(db, "Cannot find database backend \"%s\"", _backend.c_str());
}
Database::~Database()