From fb3006bc044e63b9e0c7367cad36f683b2a9554f Mon Sep 17 00:00:00 2001 From: AndrewQuijano Date: Mon, 26 Aug 2024 20:58:07 -0400 Subject: [PATCH] more fbi debugging --- tools/fbi/src/find_bug_inj.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/fbi/src/find_bug_inj.cpp b/tools/fbi/src/find_bug_inj.cpp index 01209fc..f569878 100644 --- a/tools/fbi/src/find_bug_inj.cpp +++ b/tools/fbi/src/find_bug_inj.cpp @@ -1017,6 +1017,8 @@ int main (int argc, char **argv) { inputfile = std::string(argv[4]); std::string db_name = project["db"].asString() + host.get("db_suffix", "").asString(); + std::string DBHost = host.get("database_host", "database").asString(); + int DBPort = host.get("port", 5432).asInt(); const char* pgpass = std::getenv("PGPASS"); const char* pguser = std::getenv("PGUSER"); @@ -1038,8 +1040,10 @@ int main (int argc, char **argv) { exit(1); } - std::string DBHost("database"); - int DBPort = 5432; + std::cout << "Name" << db_name << std::endl; + std::cout << "Host" << DBHost << std::endl; + std::cout << "Port" << DBPort << std::endl; + db.reset(new odb::pgsql::database(pguser, pgpass, db_name, DBHost, DBPort)); /* @@ -1064,7 +1068,8 @@ int main (int argc, char **argv) { // break; //} - num_entries_read++; + num_entries_read++; + std::cout << "*** Reading Entry " << num_entries_read << "\n"; if ((num_entries_read % 10000) == 0) { printf("processed %lu pandalog entries \n", num_entries_read); std::cout << num_bugs_added_to_db << " added to db "