Skip to content
Snippets Groups Projects
Commit db61c0a5 authored by Jan Reher's avatar Jan Reher
Browse files

Added debug message stating version number of db access libs.

parent 097cac30
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,9 @@ using namespace ProductionDatabase;
int main()
{
ProductionDatabaseClient *proddb = new ProductionDatabaseClient();
cout << "Intitializing apdBatchSetter with version " << proddb->getVersion() << " of the database access libraries." << endl;
vector<string> apdSerials;
string fileName = "serials.dat";
int nAPDs = 0;
......@@ -25,12 +28,10 @@ int main()
cout << "Found APD no. " << nAPDs << ": " << newEntry << endl;
}
ProductionDatabaseClient *proddb = new ProductionDatabaseClient();
proddb->queryCredentials();
DatabaseClientResponse response = proddb->checkConnectivityAndCredentials();
if (response != Successful ) {
cerr << "Connection to database failed because of error " << response << endl;
cerr << "Connection to database failed because of error: " << response << endl;
return response;
}
cout << "Connection successful!" << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment