Permalink
Browse files

Merge pull request #787 from cyclops1982/mysql-connect

Add connection info to sql-connect message
  • Loading branch information...
2 parents bd81241 + b8d81e3 commit 6159c498e2d155ee8c63af43720e7d95a74483a7 @Habbie Habbie committed May 10, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 modules/gmysqlbackend/gmysqlbackend.cc
  2. +1 −1 modules/gpgsqlbackend/gpgsqlbackend.cc
@@ -30,7 +30,7 @@ gMySQLBackend::gMySQLBackend(const string &mode, const string &suffix) : GSQLBa
L<<Logger::Error<<mode<<" Connection failed: "<<e.txtReason()<<endl;
throw AhuException("Unable to launch "+mode+" connection: "+e.txtReason());
}
- L<<Logger::Info<<mode<<" Connection successful"<<endl;
+ L<<Logger::Info<<mode<<" Connection successful. Connected to database '"<<getArg("dbname")<<"' on '"<<getArg("host")<<"'."<<endl;
}
class gMySQLFactory : public BackendFactory
@@ -30,7 +30,7 @@ gPgSQLBackend::gPgSQLBackend(const string &mode, const string &suffix) : GSQLBa
L<<Logger::Error<<mode<<" Connection failed: "<<e.txtReason()<<endl;
throw AhuException("Unable to launch "+mode+" connection: "+e.txtReason());
}
- L<<Logger::Info<<mode<<" Connection successful"<<endl;
+ L<<Logger::Info<<mode<<" Connection successful. Connected to database '"<<getArg("dbname")<<"' on '"<<getArg("host")<<"'."<<endl;
}
class gPgSQLFactory : public BackendFactory

0 comments on commit 6159c49

Please sign in to comment.