aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treesocket2.cpp
diff options
context:
space:
mode:
authorGravatar w00t2008-02-03 11:43:30 +0000
committerGravatar w00t2008-02-03 11:43:30 +0000
commit7483f170ded6e8528817aa051ddc5351639bbf87 (patch)
treee0214a76892902c4b3777bc7e343286828ed6706 /src/modules/m_spanningtree/treesocket2.cpp
parentBroken, but.. show how many milliseconds a burst takes. Someone care to tell ... (diff)
Show extra debug for burst time
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8802 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spanningtree/treesocket2.cpp')
-rw-r--r--src/modules/m_spanningtree/treesocket2.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp
index 88cdf846d..4e058b416 100644
--- a/src/modules/m_spanningtree/treesocket2.cpp
+++ b/src/modules/m_spanningtree/treesocket2.cpp
@@ -1178,6 +1178,7 @@ bool TreeSocket::ProcessLine(std::string &line)
gettimeofday(&t, NULL);
long ts = (t.tv_sec * 1000) + (t.tv_usec / 1000);
Node->StartBurst = ts;
+ this->Instance->Log(DEBUG, "Started bursting at time %lu", ts);
this->DoBurst(Node);
}
else if (command == "ERROR")
@@ -1517,8 +1518,8 @@ bool TreeSocket::ProcessLine(std::string &line)
gettimeofday(&t, NULL);
long ts = (t.tv_sec * 1000) + (t.tv_usec / 1000);
unsigned long bursttime = ts - ServerSource->StartBurst;
- this->Instance->SNO->WriteToSnoMask('l', "Received end of netburst from \2%s\2 (burst time: %ul ms)", sourceserv.c_str(), bursttime);
-
+ this->Instance->SNO->WriteToSnoMask('l', "Received end of netburst from \2%s\2 (burst time: %lu ms)", sourceserv.c_str(), bursttime);
+ this->Instance->Log(DEBUG, "Ended bursting at %lu (ts: %lu, startburst: %lu)", bursttime, ts, ServerSource->StartBurst);
Event rmode((char*)sourceserv.c_str(), (Module*)Utils->Creator, "new_server");
rmode.Send(Instance);