Improve multipath logging output

This commit is contained in:
Joseph Henry
2021-12-14 21:13:19 -08:00
parent 8019f13479
commit b154b7296c
2 changed files with 73 additions and 140 deletions

View File

@ -518,6 +518,7 @@ class Bond {
public:
void dumpInfo(int64_t now, bool force);
std::string pathToStr(const SharedPtr<Path>& path);
void dumpPathStatus(int64_t now, int pathIdx);
SharedPtr<Link> getLink(const SharedPtr<Path>& path);
@ -1138,6 +1139,7 @@ class Bond {
*/
void log(const char* fmt, ...)
{
#ifdef ZT_TRACE
time_t rawtime;
struct tm* timeinfo;
char timestamp[80];
@ -1157,6 +1159,7 @@ class Bond {
va_end(args);
RR->t->bondStateMessage(NULL, traceMsg);
#undef MAX_MSG_LEN
#endif
}
private: