Skip to content

Commit

Permalink
more tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
dimxy committed Feb 21, 2020
1 parent 0c81cf3 commit 9d9188c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cc/pricesfeed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static void *my_so_open(const char *unixpath)
while (*p)
ospath += (*p == '/') ? '\\' : *p, p++;
// ospath += ".dll"; LoadLibraryA adds .dll itself
std::cerr << __func__ << " ospath=" << ospath << std::endl;
std::cerr << __func__ << " ospath=" << ospath << " error=" << GetLastError() << std::endl;
void * plib = (void*)::LoadLibraryA(ospath.c_str());
#endif
return plib;
Expand Down Expand Up @@ -219,12 +219,12 @@ bool init_poll_statuses()
std::string libpath = "./cc/priceslibs/" + feedconfig[i].customlib;
pollStatuses[i].customlibHandle = my_so_open(libpath.c_str());
if (pollStatuses[i].customlibHandle == NULL) {
LOGSTREAMFN("prices", CCLOG_INFO, stream << "can't load prices custom lib=" << libpath << std::endl);
LOGSTREAMFN("prices", CCLOG_INFO, stream << "ERROR: can't load prices custom lib=" << libpath << std::endl);
return false;
}
pollStatuses[i].customJsonParser = (CustomJsonParser)my_so_get_sym(pollStatuses[i].customlibHandle, PF_CUSTOM_PARSER_FUNCNAME);
if (pollStatuses[i].customJsonParser == NULL) {
LOGSTREAMFN("prices", CCLOG_INFO, stream << "can't load custom json parser function=" << PF_CUSTOM_PARSER_FUNCNAME << " from custom lib=" << feedconfig[i].customlib << std::endl);
LOGSTREAMFN("prices", CCLOG_INFO, stream << "ERROR: can't load custom json parser function=" << PF_CUSTOM_PARSER_FUNCNAME << " from custom lib=" << feedconfig[i].customlib << std::endl);
return false;
}

Expand Down

0 comments on commit 9d9188c

Please sign in to comment.