From 74a5e26ca92218e15bc4d4d74080ea0761618ff8 Mon Sep 17 00:00:00 2001 From: deva Date: Wed, 11 Nov 2009 11:38:29 +0000 Subject: Made database noisy if unknown databse backend is requested. --- server/src/database.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'server/src') 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() -- cgit v1.2.3