mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-05 20:41:44 -07:00
Improve multipath logging output
This commit is contained in:
parent
8019f13479
commit
b154b7296c
2 changed files with 73 additions and 140 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue