Skip to content

Commit

Permalink
Updates per review comments; No logical code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
renukamanavalan committed Jul 21, 2022
1 parent 30b9ea1 commit 8d8103e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 35 deletions.
1 change: 1 addition & 0 deletions src/sonic-eventd/src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "logger.h"
#include "eventd.h"

void run_eventd_service();

Expand Down
35 changes: 0 additions & 35 deletions src/sonic-eventd/tools/events_tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,33 +141,6 @@ do_receive(const event_subscribe_sources_t filter, const string outfile, int cnt
}


#if 0
void
parse_file(const string infile)
{
ifstream input(infile);
string line;

while(getline( input, line )) {
const auto &data = nlohmann::json::parse(line);
printf("is_obj=%d is_arr=%d\n", data.is_object(), data.is_array());
printf("size=%d\n", (int)data.size());
string k(data.begin().key());
printf("key=%s\n", k.c_str());
const auto &val = data.begin().value();
printf("val: is_obj=%d is_arr=%d\n", val.is_object(), val.is_array());
printf("Params:\n");
for(auto par_it = val.begin(); par_it != val.end(); par_it++) {
string k(par_it.key());
string v(par_it.value());
printf(" key=%s\n",k.c_str());
printf(" val=%s\n", v.c_str());
}
printf("------------------------------\n");
}
}
#endif

int
do_send(const string infile, int cnt, int pause)
{
Expand Down Expand Up @@ -216,14 +189,6 @@ do_send(const string infile, int cnt, int pause)
}
}

#if 0
cout << "Events to send\n";
for(lst_t::const_iterator itc=lst.begin(); itc != lst.end(); ++itc) {
cout << "tag:" << itc->tag << " params:" << t_map_to_str(itc->params) << "\n";
}
cout << "Events END\n";
#endif

if (lst.empty()) {
evt_t evt = {
"test-tag",
Expand Down

0 comments on commit 8d8103e

Please sign in to comment.