diff options
author | Justin Clark-Casey (justincc) | 2013-11-05 23:32:26 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-11-05 23:32:26 +0000 |
commit | caf2abe311a9f7a703ba7444601c34d96053edcf (patch) | |
tree | b0101e97a30f9fa0cc17f90b1680174a05dba9a1 /OpenSim/Tools/pCampBot/Bot.cs | |
parent | minor: comment out "SetLastPosition" GridUserService debug message for now. (diff) | |
download | opensim-SC_OLD-caf2abe311a9f7a703ba7444601c34d96053edcf.zip opensim-SC_OLD-caf2abe311a9f7a703ba7444601c34d96053edcf.tar.gz opensim-SC_OLD-caf2abe311a9f7a703ba7444601c34d96053edcf.tar.bz2 opensim-SC_OLD-caf2abe311a9f7a703ba7444601c34d96053edcf.tar.xz |
Record individual region bot disconnects in pCampbot log
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Tools/pCampBot/Bot.cs | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/OpenSim/Tools/pCampBot/Bot.cs b/OpenSim/Tools/pCampBot/Bot.cs index 70aa2cb..de464ab 100644 --- a/OpenSim/Tools/pCampBot/Bot.cs +++ b/OpenSim/Tools/pCampBot/Bot.cs | |||
@@ -264,9 +264,10 @@ namespace pCampBot | |||
264 | newClient.Throttle.Total = 400000; | 264 | newClient.Throttle.Total = 400000; |
265 | } | 265 | } |
266 | 266 | ||
267 | newClient.Network.LoginProgress += this.Network_LoginProgress; | 267 | newClient.Network.LoginProgress += Network_LoginProgress; |
268 | newClient.Network.SimConnected += this.Network_SimConnected; | 268 | newClient.Network.SimConnected += Network_SimConnected; |
269 | newClient.Network.Disconnected += this.Network_OnDisconnected; | 269 | newClient.Network.SimDisconnected += Network_SimDisconnected; |
270 | newClient.Network.Disconnected += Network_OnDisconnected; | ||
270 | newClient.Objects.ObjectUpdate += Objects_NewPrim; | 271 | newClient.Objects.ObjectUpdate += Objects_NewPrim; |
271 | 272 | ||
272 | Client = newClient; | 273 | Client = newClient; |
@@ -583,7 +584,13 @@ namespace pCampBot | |||
583 | public void Network_SimConnected(object sender, SimConnectedEventArgs args) | 584 | public void Network_SimConnected(object sender, SimConnectedEventArgs args) |
584 | { | 585 | { |
585 | m_log.DebugFormat( | 586 | m_log.DebugFormat( |
586 | "[BOT]: Bot {0} connected to {1} at {2}", Name, args.Simulator.Name, args.Simulator.IPEndPoint); | 587 | "[BOT]: Bot {0} connected to region {1} at {2}", Name, args.Simulator.Name, args.Simulator.IPEndPoint); |
588 | } | ||
589 | |||
590 | public void Network_SimDisconnected(object sender, SimDisconnectedEventArgs args) | ||
591 | { | ||
592 | m_log.DebugFormat( | ||
593 | "[BOT]: Bot {0} disconnected from region {1} at {2}", Name, args.Simulator.Name, args.Simulator.IPEndPoint); | ||
587 | } | 594 | } |
588 | 595 | ||
589 | public void Network_OnDisconnected(object sender, DisconnectedEventArgs args) | 596 | public void Network_OnDisconnected(object sender, DisconnectedEventArgs args) |
@@ -591,7 +598,7 @@ namespace pCampBot | |||
591 | ConnectionState = ConnectionState.Disconnected; | 598 | ConnectionState = ConnectionState.Disconnected; |
592 | 599 | ||
593 | m_log.DebugFormat( | 600 | m_log.DebugFormat( |
594 | "[BOT]: Bot {0} disconnected reason {1}, message {2}", Name, args.Reason, args.Message); | 601 | "[BOT]: Bot {0} disconnected from grid, reason {1}, message {2}", Name, args.Reason, args.Message); |
595 | 602 | ||
596 | // m_log.ErrorFormat("Fired Network_OnDisconnected"); | 603 | // m_log.ErrorFormat("Fired Network_OnDisconnected"); |
597 | 604 | ||