summaryrefslogtreecommitdiff
path: root/server/src/database.cc
diff options
context:
space:
mode:
authordeva <deva>2009-11-11 11:38:29 +0000
committerdeva <deva>2009-11-11 11:38:29 +0000
commit74a5e26ca92218e15bc4d4d74080ea0761618ff8 (patch)
treefbf0a91866b9edf6570f414c565021252fc0f4fc /server/src/database.cc
parentcc585b00aece855f87b1b79b9414c559eb547c97 (diff)
Made database noisy if unknown databse backend is requested.
Diffstat (limited to 'server/src/database.cc')
-rw-r--r--server/src/database.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/database.cc b/server/src/database.cc
index 3ec12cb..47cd877 100644
--- a/server/src/database.cc
+++ b/server/src/database.cc
@@ -45,12 +45,13 @@ Database::Database(std::string _backend, std::string _host, std::string _port, s
}
#endif/*WITHOUT_DB*/
if(_backend == "testdb") {
+ PRACRO_DEBUG(db, "Running with 'testdb'\n");
Data data;
dao = new PracroDAOTest(data, true);
return;
}
- PRACRO_ERR(database, "Cannot find database backend \"%s\"", _backend.c_str());
+ PRACRO_ERR(db, "Cannot find database backend \"%s\"", _backend.c_str());
}
Database::~Database()