aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
diff options
context:
space:
mode:
authorJeff Ames2008-02-05 19:44:27 +0000
committerJeff Ames2008-02-05 19:44:27 +0000
commit6ed5283bc06a62f38eb517e67b975832b603bf61 (patch)
treee5f635018789b73a99ddeca0883a68368fa5eece /OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
parentCut down on the number of packets sent during terraforming. Terraforming shou... (diff)
downloadopensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.zip
opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.gz
opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.bz2
opensim-SC_OLD-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.xz
Converted logging to use log4net.
Changed LogBase to ConsoleBase, which handles console I/O. This is mostly an in-place conversion, so lots of refactoring can still be done.
Diffstat (limited to 'OpenSim/Region/Communications/OGS1/OGS1GridServices.cs')
-rw-r--r--OpenSim/Region/Communications/OGS1/OGS1GridServices.cs208
1 files changed, 105 insertions, 103 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
index 1576bf3..f04574a 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
@@ -47,6 +47,8 @@ namespace OpenSim.Region.Communications.OGS1
47{ 47{
48 public class OGS1GridServices : IGridServices, IInterRegionCommunications 48 public class OGS1GridServices : IGridServices, IInterRegionCommunications
49 { 49 {
50 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
51
50 private LocalBackEndServices m_localBackend = new LocalBackEndServices(); 52 private LocalBackEndServices m_localBackend = new LocalBackEndServices();
51 private Dictionary<ulong, RegionInfo> m_remoteRegionInfoCache = new Dictionary<ulong, RegionInfo>(); 53 private Dictionary<ulong, RegionInfo> m_remoteRegionInfoCache = new Dictionary<ulong, RegionInfo>();
52 private List<SimpleRegionInfo> m_knownRegions = new List<SimpleRegionInfo>(); 54 private List<SimpleRegionInfo> m_knownRegions = new List<SimpleRegionInfo>();
@@ -138,7 +140,7 @@ namespace OpenSim.Region.Communications.OGS1
138 GridResp = GridReq.Send(serversInfo.GridURL, 10000); 140 GridResp = GridReq.Send(serversInfo.GridURL, 10000);
139 } catch (Exception ex) 141 } catch (Exception ex)
140 { 142 {
141 MainLog.Instance.Error("Unable to connect to grid. Grid server not running?"); 143 m_log.Error("Unable to connect to grid. Grid server not running?");
142 throw(ex); 144 throw(ex);
143 } 145 }
144 Hashtable GridRespData = (Hashtable)GridResp.Value; 146 Hashtable GridRespData = (Hashtable)GridResp.Value;
@@ -148,7 +150,7 @@ namespace OpenSim.Region.Communications.OGS1
148 if (GridRespData.ContainsKey("error")) 150 if (GridRespData.ContainsKey("error"))
149 { 151 {
150 string errorstring = (string) GridRespData["error"]; 152 string errorstring = (string) GridRespData["error"];
151 MainLog.Instance.Error("Unable to connect to grid: " + errorstring); 153 m_log.Error("Unable to connect to grid: " + errorstring);
152 return null; 154 return null;
153 } 155 }
154 else 156 else
@@ -330,9 +332,9 @@ namespace OpenSim.Region.Communications.OGS1
330 } 332 }
331 catch (WebException) 333 catch (WebException)
332 { 334 {
333 MainLog.Instance.Error("GRID", 335 m_log.Error("[GRID]: " +
334 "Region lookup failed for: " + regionHandle.ToString() + 336 "Region lookup failed for: " + regionHandle.ToString() +
335 " - Is the GridServer down?"); 337 " - Is the GridServer down?");
336 return null; 338 return null;
337 } 339 }
338 } 340 }
@@ -421,7 +423,7 @@ namespace OpenSim.Region.Communications.OGS1
421 } 423 }
422 catch (Exception e) 424 catch (Exception e)
423 { 425 {
424 MainLog.Instance.Error("MapBlockQuery XMLRPC failure: " + e.ToString()); 426 m_log.Error("MapBlockQuery XMLRPC failure: " + e.ToString());
425 return new Hashtable(); 427 return new Hashtable();
426 } 428 }
427 } 429 }
@@ -482,7 +484,7 @@ namespace OpenSim.Region.Communications.OGS1
482 484
483 m_localBackend.TriggerExpectUser(regionHandle, agentData); 485 m_localBackend.TriggerExpectUser(regionHandle, agentData);
484 486
485 MainLog.Instance.Verbose("GRID", "Welcoming new user..."); 487 m_log.Info("[GRID]: Welcoming new user...");
486 488
487 return new XmlRpcResponse(); 489 return new XmlRpcResponse();
488 } 490 }
@@ -555,7 +557,7 @@ namespace OpenSim.Region.Communications.OGS1
555 Console.WriteLine("remoting object not found"); 557 Console.WriteLine("remoting object not found");
556 } 558 }
557 remObject = null; 559 remObject = null;
558 //MainLog.Instance.Verbose("INTER", 560 //m_log.Info("[INTER]: " +
559 //gdebugRegionName + 561 //gdebugRegionName +
560 //": OGS1 tried to Update Child Agent data on outside region and got " + 562 //": OGS1 tried to Update Child Agent data on outside region and got " +
561 //retValue.ToString()); 563 //retValue.ToString());
@@ -569,45 +571,45 @@ namespace OpenSim.Region.Communications.OGS1
569 catch (RemotingException e) 571 catch (RemotingException e)
570 { 572 {
571 NoteDeadRegion(regionHandle); 573 NoteDeadRegion(regionHandle);
572 MainLog.Instance.Warn("Remoting Error: Unable to connect to adjacent region: " + 574 m_log.Warn("Remoting Error: Unable to connect to adjacent region: " +
573 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 575 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
574 MainLog.Instance.Debug(e.ToString()); 576 m_log.Debug(e.ToString());
575 return false; 577 return false;
576 } 578 }
577 catch (SocketException e) 579 catch (SocketException e)
578 { 580 {
579 NoteDeadRegion(regionHandle); 581 NoteDeadRegion(regionHandle);
580 MainLog.Instance.Warn("Socket Error: Unable to connect to adjacent region: " + " " + 582 m_log.Warn("Socket Error: Unable to connect to adjacent region: " + " " +
581 regInfo.RegionLocX + "," + regInfo.RegionLocY); 583 regInfo.RegionLocX + "," + regInfo.RegionLocY);
582 MainLog.Instance.Debug(e.ToString()); 584 m_log.Debug(e.ToString());
583 return false; 585 return false;
584 } 586 }
585 catch (InvalidCredentialException e) 587 catch (InvalidCredentialException e)
586 { 588 {
587 NoteDeadRegion(regionHandle); 589 NoteDeadRegion(regionHandle);
588 MainLog.Instance.Warn("Invalid Credentials: Unable to connect to adjacent region: " + 590 m_log.Warn("Invalid Credentials: Unable to connect to adjacent region: " +
589 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 591 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
590 MainLog.Instance.Debug(e.ToString()); 592 m_log.Debug(e.ToString());
591 return false; 593 return false;
592 } 594 }
593 catch (AuthenticationException e) 595 catch (AuthenticationException e)
594 { 596 {
595 NoteDeadRegion(regionHandle); 597 NoteDeadRegion(regionHandle);
596 MainLog.Instance.Warn("Authentication exception: Unable to connect to adjacent region: " + 598 m_log.Warn("Authentication exception: Unable to connect to adjacent region: " +
597 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 599 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
598 MainLog.Instance.Debug(e.ToString()); 600 m_log.Debug(e.ToString());
599 return false; 601 return false;
600 } 602 }
601 catch (Exception e) 603 catch (Exception e)
602 { 604 {
603 NoteDeadRegion(regionHandle); 605 NoteDeadRegion(regionHandle);
604 MainLog.Instance.Debug(e.ToString()); 606 m_log.Debug(e.ToString());
605 return false; 607 return false;
606 } 608 }
607 } 609 }
608 else 610 else
609 { 611 {
610 //MainLog.Instance.Verbose("INTERREGION", "Skipped Sending Child Update to a region because it failed too many times:" + regionHandle.ToString()); 612 //m_log.Info("[INTERREGION]: Skipped Sending Child Update to a region because it failed too many times:" + regionHandle.ToString());
611 return false; 613 return false;
612 } 614 }
613 } 615 }
@@ -650,10 +652,10 @@ namespace OpenSim.Region.Communications.OGS1
650 Console.WriteLine("remoting object not found"); 652 Console.WriteLine("remoting object not found");
651 } 653 }
652 remObject = null; 654 remObject = null;
653 MainLog.Instance.Verbose("INTER", 655 m_log.Info("[INTER]: " +
654 gdebugRegionName + ": OGS1 tried to InformRegionOfChildAgent for " + 656 gdebugRegionName + ": OGS1 tried to InformRegionOfChildAgent for " +
655 agentData.firstname + " " + agentData.lastname + " and got " + 657 agentData.firstname + " " + agentData.lastname + " and got " +
656 retValue.ToString()); 658 retValue.ToString());
657 659
658 return retValue; 660 return retValue;
659 661
@@ -664,41 +666,41 @@ namespace OpenSim.Region.Communications.OGS1
664 catch (RemotingException e) 666 catch (RemotingException e)
665 { 667 {
666 NoteDeadRegion(regionHandle); 668 NoteDeadRegion(regionHandle);
667 MainLog.Instance.Warn("Remoting Error: Unable to connect to adjacent region: " + regInfo.RegionName + 669 m_log.Warn("Remoting Error: Unable to connect to adjacent region: " + regInfo.RegionName +
668 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 670 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
669 MainLog.Instance.Debug(e.ToString()); 671 m_log.Debug(e.ToString());
670 return false; 672 return false;
671 } 673 }
672 catch (SocketException e) 674 catch (SocketException e)
673 { 675 {
674 NoteDeadRegion(regionHandle); 676 NoteDeadRegion(regionHandle);
675 MainLog.Instance.Warn("Socket Error: Unable to connect to adjacent region: " + regInfo.RegionName + " " + 677 m_log.Warn("Socket Error: Unable to connect to adjacent region: " + regInfo.RegionName + " " +
676 regInfo.RegionLocX + "," + regInfo.RegionLocY); 678 regInfo.RegionLocX + "," + regInfo.RegionLocY);
677 MainLog.Instance.Debug(e.ToString()); 679 m_log.Debug(e.ToString());
678 return false; 680 return false;
679 } 681 }
680 catch (InvalidCredentialException e) 682 catch (InvalidCredentialException e)
681 { 683 {
682 NoteDeadRegion(regionHandle); 684 NoteDeadRegion(regionHandle);
683 MainLog.Instance.Warn("Invalid Credentials: Unable to connect to adjacent region: " + regInfo.RegionName + 685 m_log.Warn("Invalid Credentials: Unable to connect to adjacent region: " + regInfo.RegionName +
684 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 686 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
685 MainLog.Instance.Debug(e.ToString()); 687 m_log.Debug(e.ToString());
686 return false; 688 return false;
687 } 689 }
688 catch (AuthenticationException e) 690 catch (AuthenticationException e)
689 { 691 {
690 NoteDeadRegion(regionHandle); 692 NoteDeadRegion(regionHandle);
691 MainLog.Instance.Warn("Authentication exception: Unable to connect to adjacent region: " + 693 m_log.Warn("Authentication exception: Unable to connect to adjacent region: " +
692 regInfo.RegionName + " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 694 regInfo.RegionName + " " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
693 MainLog.Instance.Debug(e.ToString()); 695 m_log.Debug(e.ToString());
694 return false; 696 return false;
695 } 697 }
696 catch (Exception e) 698 catch (Exception e)
697 { 699 {
698 NoteDeadRegion(regionHandle); 700 NoteDeadRegion(regionHandle);
699 MainLog.Instance.Warn("Unknown exception: Unable to connect to adjacent region: " + regInfo.RegionName + 701 m_log.Warn("Unknown exception: Unable to connect to adjacent region: " + regInfo.RegionName +
700 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 702 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
701 MainLog.Instance.Debug(e.ToString()); 703 m_log.Debug(e.ToString());
702 return false; 704 return false;
703 } 705 }
704 } 706 }
@@ -748,7 +750,7 @@ namespace OpenSim.Region.Communications.OGS1
748 Console.WriteLine("remoting object not found"); 750 Console.WriteLine("remoting object not found");
749 } 751 }
750 remObject = null; 752 remObject = null;
751 MainLog.Instance.Verbose("INTER", gdebugRegionName + ": OGS1 tried to inform region I'm up"); 753 m_log.Info("[INTER]: " + gdebugRegionName + ": OGS1 tried to inform region I'm up");
752 754
753 return retValue; 755 return retValue;
754 } 756 }
@@ -765,49 +767,49 @@ namespace OpenSim.Region.Communications.OGS1
765 } 767 }
766 catch (RemotingException e) 768 catch (RemotingException e)
767 { 769 {
768 MainLog.Instance.Warn("Remoting Error: Unable to connect to adjacent region using tcp://" + 770 m_log.Warn("Remoting Error: Unable to connect to adjacent region using tcp://" +
769 regInfo.RemotingAddress + 771 regInfo.RemotingAddress +
770 ":" + regInfo.RemotingPort + 772 ":" + regInfo.RemotingPort +
771 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY + 773 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY +
772 " - Is this neighbor up?"); 774 " - Is this neighbor up?");
773 MainLog.Instance.Debug(e.ToString()); 775 m_log.Debug(e.ToString());
774 return false; 776 return false;
775 } 777 }
776 catch (SocketException e) 778 catch (SocketException e)
777 { 779 {
778 MainLog.Instance.Warn("Socket Error: Unable to connect to adjacent region using tcp://" + 780 m_log.Warn("Socket Error: Unable to connect to adjacent region using tcp://" +
779 regInfo.RemotingAddress + 781 regInfo.RemotingAddress +
780 ":" + regInfo.RemotingPort + 782 ":" + regInfo.RemotingPort +
781 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY + 783 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY +
782 " - Is this neighbor up?"); 784 " - Is this neighbor up?");
783 MainLog.Instance.Debug(e.ToString()); 785 m_log.Debug(e.ToString());
784 return false; 786 return false;
785 } 787 }
786 catch (InvalidCredentialException e) 788 catch (InvalidCredentialException e)
787 { 789 {
788 MainLog.Instance.Warn("Invalid Credentials: Unable to connect to adjacent region using tcp://" + 790 m_log.Warn("Invalid Credentials: Unable to connect to adjacent region using tcp://" +
789 regInfo.RemotingAddress + 791 regInfo.RemotingAddress +
790 ":" + regInfo.RemotingPort + 792 ":" + regInfo.RemotingPort +
791 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 793 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
792 MainLog.Instance.Debug(e.ToString()); 794 m_log.Debug(e.ToString());
793 return false; 795 return false;
794 } 796 }
795 catch (AuthenticationException e) 797 catch (AuthenticationException e)
796 { 798 {
797 MainLog.Instance.Warn("Authentication exception: Unable to connect to adjacent region using tcp://" + 799 m_log.Warn("Authentication exception: Unable to connect to adjacent region using tcp://" +
798 regInfo.RemotingAddress + 800 regInfo.RemotingAddress +
799 ":" + regInfo.RemotingPort + 801 ":" + regInfo.RemotingPort +
800 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 802 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
801 MainLog.Instance.Debug(e.ToString()); 803 m_log.Debug(e.ToString());
802 return false; 804 return false;
803 } 805 }
804 catch (Exception e) 806 catch (Exception e)
805 { 807 {
806 // This line errors with a Null Reference Exception.. Why? @.@ 808 // This line errors with a Null Reference Exception.. Why? @.@
807 //MainLog.Instance.Warn("Unknown exception: Unable to connect to adjacent region using tcp://" + regInfo.RemotingAddress + 809 //m_log.Warn("Unknown exception: Unable to connect to adjacent region using tcp://" + regInfo.RemotingAddress +
808 // ":" + regInfo.RemotingPort + 810 // ":" + regInfo.RemotingPort +
809 //"/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY + " - This is likely caused by an incompatibility in the protocol between this sim and that one"); 811 //"/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY + " - This is likely caused by an incompatibility in the protocol between this sim and that one");
810 MainLog.Instance.Debug(e.ToString()); 812 m_log.Debug(e.ToString());
811 return false; 813 return false;
812 } 814 }
813 } 815 }
@@ -860,41 +862,41 @@ namespace OpenSim.Region.Communications.OGS1
860 catch (RemotingException e) 862 catch (RemotingException e)
861 { 863 {
862 NoteDeadRegion(regionHandle); 864 NoteDeadRegion(regionHandle);
863 MainLog.Instance.Warn("Remoting Error: Unable to connect to adjacent region: " + regInfo.RegionName + 865 m_log.Warn("Remoting Error: Unable to connect to adjacent region: " + regInfo.RegionName +
864 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 866 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
865 MainLog.Instance.Debug(e.ToString()); 867 m_log.Debug(e.ToString());
866 return false; 868 return false;
867 } 869 }
868 catch (SocketException e) 870 catch (SocketException e)
869 { 871 {
870 NoteDeadRegion(regionHandle); 872 NoteDeadRegion(regionHandle);
871 MainLog.Instance.Warn("Socket Error: Unable to connect to adjacent region: " + regInfo.RegionName + " " + 873 m_log.Warn("Socket Error: Unable to connect to adjacent region: " + regInfo.RegionName + " " +
872 regInfo.RegionLocX + "," + regInfo.RegionLocY); 874 regInfo.RegionLocX + "," + regInfo.RegionLocY);
873 MainLog.Instance.Debug(e.ToString()); 875 m_log.Debug(e.ToString());
874 return false; 876 return false;
875 } 877 }
876 catch (InvalidCredentialException e) 878 catch (InvalidCredentialException e)
877 { 879 {
878 NoteDeadRegion(regionHandle); 880 NoteDeadRegion(regionHandle);
879 MainLog.Instance.Warn("Invalid Credentials: Unable to connect to adjacent region: " + regInfo.RegionName + 881 m_log.Warn("Invalid Credentials: Unable to connect to adjacent region: " + regInfo.RegionName +
880 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 882 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
881 MainLog.Instance.Debug(e.ToString()); 883 m_log.Debug(e.ToString());
882 return false; 884 return false;
883 } 885 }
884 catch (AuthenticationException e) 886 catch (AuthenticationException e)
885 { 887 {
886 NoteDeadRegion(regionHandle); 888 NoteDeadRegion(regionHandle);
887 MainLog.Instance.Warn("Authentication exception: Unable to connect to adjacent region: " + 889 m_log.Warn("Authentication exception: Unable to connect to adjacent region: " +
888 regInfo.RegionName + " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 890 regInfo.RegionName + " " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
889 MainLog.Instance.Debug(e.ToString()); 891 m_log.Debug(e.ToString());
890 return false; 892 return false;
891 } 893 }
892 catch (Exception e) 894 catch (Exception e)
893 { 895 {
894 NoteDeadRegion(regionHandle); 896 NoteDeadRegion(regionHandle);
895 MainLog.Instance.Warn("Unknown exception: Unable to connect to adjacent region: " + regInfo.RegionName + 897 m_log.Warn("Unknown exception: Unable to connect to adjacent region: " + regInfo.RegionName +
896 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 898 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
897 MainLog.Instance.Debug(e.ToString()); 899 m_log.Debug(e.ToString());
898 return false; 900 return false;
899 } 901 }
900 } 902 }
@@ -947,9 +949,9 @@ namespace OpenSim.Region.Communications.OGS1
947 catch (RemotingException e) 949 catch (RemotingException e)
948 { 950 {
949 NoteDeadRegion(regionHandle); 951 NoteDeadRegion(regionHandle);
950 MainLog.Instance.Warn("Remoting Error: Unable to connect to adjacent region: " + regInfo.RegionName + 952 m_log.Warn("Remoting Error: Unable to connect to adjacent region: " + regInfo.RegionName +
951 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 953 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
952 MainLog.Instance.Debug(e.ToString()); 954 m_log.Debug(e.ToString());
953 return false; 955 return false;
954 } 956 }
955 catch 957 catch
@@ -1000,9 +1002,9 @@ namespace OpenSim.Region.Communications.OGS1
1000 catch (RemotingException e) 1002 catch (RemotingException e)
1001 { 1003 {
1002 NoteDeadRegion(regionHandle); 1004 NoteDeadRegion(regionHandle);
1003 MainLog.Instance.Warn("Remoting Error: Unable to connect to adjacent region: " + regInfo.RegionName + 1005 m_log.Warn("Remoting Error: Unable to connect to adjacent region: " + regInfo.RegionName +
1004 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 1006 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
1005 MainLog.Instance.Debug(e.ToString()); 1007 m_log.Debug(e.ToString());
1006 return false; 1008 return false;
1007 } 1009 }
1008 catch 1010 catch
@@ -1052,61 +1054,61 @@ namespace OpenSim.Region.Communications.OGS1
1052 catch (RemotingException e) 1054 catch (RemotingException e)
1053 { 1055 {
1054 NoteDeadRegion(regionHandle); 1056 NoteDeadRegion(regionHandle);
1055 MainLog.Instance.Warn("Remoting Error: Unable to connect to adjacent region to tell it to close child agents: " + regInfo.RegionName + 1057 m_log.Warn("Remoting Error: Unable to connect to adjacent region to tell it to close child agents: " + regInfo.RegionName +
1056 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 1058 " " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
1057 //MainLog.Instance.Debug(e.ToString()); 1059 //m_log.Debug(e.ToString());
1058 return false; 1060 return false;
1059 } 1061 }
1060 1062
1061 catch (SocketException e) 1063 catch (SocketException e)
1062 { 1064 {
1063 NoteDeadRegion(regionHandle); 1065 NoteDeadRegion(regionHandle);
1064 MainLog.Instance.Warn("Socket Error: Unable to connect to adjacent region using tcp://" + 1066 m_log.Warn("Socket Error: Unable to connect to adjacent region using tcp://" +
1065 regInfo.RemotingAddress + 1067 regInfo.RemotingAddress +
1066 ":" + regInfo.RemotingPort + 1068 ":" + regInfo.RemotingPort +
1067 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY + 1069 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY +
1068 " - Is this neighbor up?"); 1070 " - Is this neighbor up?");
1069 MainLog.Instance.Debug(e.ToString()); 1071 m_log.Debug(e.ToString());
1070 return false; 1072 return false;
1071 } 1073 }
1072 catch (InvalidCredentialException e) 1074 catch (InvalidCredentialException e)
1073 { 1075 {
1074 NoteDeadRegion(regionHandle); 1076 NoteDeadRegion(regionHandle);
1075 MainLog.Instance.Warn("Invalid Credentials: Unable to connect to adjacent region using tcp://" + 1077 m_log.Warn("Invalid Credentials: Unable to connect to adjacent region using tcp://" +
1076 regInfo.RemotingAddress + 1078 regInfo.RemotingAddress +
1077 ":" + regInfo.RemotingPort + 1079 ":" + regInfo.RemotingPort +
1078 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 1080 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
1079 MainLog.Instance.Debug(e.ToString()); 1081 m_log.Debug(e.ToString());
1080 return false; 1082 return false;
1081 } 1083 }
1082 catch (AuthenticationException e) 1084 catch (AuthenticationException e)
1083 { 1085 {
1084 NoteDeadRegion(regionHandle); 1086 NoteDeadRegion(regionHandle);
1085 MainLog.Instance.Warn("Authentication exception: Unable to connect to adjacent region using tcp://" + 1087 m_log.Warn("Authentication exception: Unable to connect to adjacent region using tcp://" +
1086 regInfo.RemotingAddress + 1088 regInfo.RemotingAddress +
1087 ":" + regInfo.RemotingPort + 1089 ":" + regInfo.RemotingPort +
1088 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 1090 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
1089 MainLog.Instance.Debug(e.ToString()); 1091 m_log.Debug(e.ToString());
1090 return false; 1092 return false;
1091 } 1093 }
1092 catch (WebException e) 1094 catch (WebException e)
1093 { 1095 {
1094 NoteDeadRegion(regionHandle); 1096 NoteDeadRegion(regionHandle);
1095 MainLog.Instance.Warn("WebException exception: Unable to connect to adjacent region using tcp://" + 1097 m_log.Warn("WebException exception: Unable to connect to adjacent region using tcp://" +
1096 regInfo.RemotingAddress + 1098 regInfo.RemotingAddress +
1097 ":" + regInfo.RemotingPort + 1099 ":" + regInfo.RemotingPort +
1098 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY); 1100 "/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY);
1099 MainLog.Instance.Debug(e.ToString()); 1101 m_log.Debug(e.ToString());
1100 return false; 1102 return false;
1101 } 1103 }
1102 catch (Exception e) 1104 catch (Exception e)
1103 { 1105 {
1104 NoteDeadRegion(regionHandle); 1106 NoteDeadRegion(regionHandle);
1105 // This line errors with a Null Reference Exception.. Why? @.@ 1107 // This line errors with a Null Reference Exception.. Why? @.@
1106 //MainLog.Instance.Warn("Unknown exception: Unable to connect to adjacent region using tcp://" + regInfo.RemotingAddress + 1108 //m_log.Warn("Unknown exception: Unable to connect to adjacent region using tcp://" + regInfo.RemotingAddress +
1107 // ":" + regInfo.RemotingPort + 1109 // ":" + regInfo.RemotingPort +
1108 //"/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY + " - This is likely caused by an incompatibility in the protocol between this sim and that one"); 1110 //"/InterRegions - @ " + regInfo.RegionLocX + "," + regInfo.RegionLocY + " - This is likely caused by an incompatibility in the protocol between this sim and that one");
1109 MainLog.Instance.Debug(e.ToString()); 1111 m_log.Debug(e.ToString());
1110 return false; 1112 return false;
1111 } 1113 }
1112 } 1114 }
@@ -1133,7 +1135,7 @@ namespace OpenSim.Region.Communications.OGS1
1133 /// <returns></returns> 1135 /// <returns></returns>
1134 public bool IncomingChildAgent(ulong regionHandle, AgentCircuitData agentData) 1136 public bool IncomingChildAgent(ulong regionHandle, AgentCircuitData agentData)
1135 { 1137 {
1136 //MainLog.Instance.Verbose("INTER", gdebugRegionName + ": Incoming OGS1 Agent " + agentData.firstname + " " + agentData.lastname); 1138 //m_log.Info("[INTER]: " + gdebugRegionName + ": Incoming OGS1 Agent " + agentData.firstname + " " + agentData.lastname);
1137 1139
1138 try 1140 try
1139 { 1141 {
@@ -1141,16 +1143,16 @@ namespace OpenSim.Region.Communications.OGS1
1141 } 1143 }
1142 catch (RemotingException) 1144 catch (RemotingException)
1143 { 1145 {
1144 //MainLog.Instance.Error("Remoting Error: Unable to connect to adjacent region.\n" + e.ToString()); 1146 //m_log.Error("Remoting Error: Unable to connect to adjacent region.\n" + e.ToString());
1145 return false; 1147 return false;
1146 } 1148 }
1147 } 1149 }
1148 1150
1149 public bool TriggerRegionUp(SearializableRegionInfo regionData, ulong regionhandle) 1151 public bool TriggerRegionUp(SearializableRegionInfo regionData, ulong regionhandle)
1150 { 1152 {
1151 MainLog.Instance.Verbose("INTER", 1153 m_log.Info("[INTER]: " +
1152 gdebugRegionName + "Incoming OGS1 RegionUpReport: " + "(" + regionData.RegionLocX + 1154 gdebugRegionName + "Incoming OGS1 RegionUpReport: " + "(" + regionData.RegionLocX +
1153 "," + regionData.RegionLocY + "). Giving this region a fresh set of 'dead' tries"); 1155 "," + regionData.RegionLocY + "). Giving this region a fresh set of 'dead' tries");
1154 1156
1155 try 1157 try
1156 { 1158 {
@@ -1169,14 +1171,14 @@ namespace OpenSim.Region.Communications.OGS1
1169 1171
1170 catch (RemotingException e) 1172 catch (RemotingException e)
1171 { 1173 {
1172 MainLog.Instance.Error("Remoting Error: Unable to connect to adjacent region.\n" + e.ToString()); 1174 m_log.Error("Remoting Error: Unable to connect to adjacent region.\n" + e.ToString());
1173 return false; 1175 return false;
1174 } 1176 }
1175 } 1177 }
1176 1178
1177 public bool TriggerChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentData) 1179 public bool TriggerChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate cAgentData)
1178 { 1180 {
1179 //MainLog.Instance.Verbose("INTER", "Incoming OGS1 Child Agent Data Update"); 1181 //m_log.Info("[INTER]: Incoming OGS1 Child Agent Data Update");
1180 1182
1181 try 1183 try
1182 { 1184 {
@@ -1184,7 +1186,7 @@ namespace OpenSim.Region.Communications.OGS1
1184 } 1186 }
1185 catch (RemotingException e) 1187 catch (RemotingException e)
1186 { 1188 {
1187 MainLog.Instance.Error("Remoting Error: Unable to connect to adjacent region.\n" + e.ToString()); 1189 m_log.Error("Remoting Error: Unable to connect to adjacent region.\n" + e.ToString());
1188 return false; 1190 return false;
1189 } 1191 }
1190 } 1192 }
@@ -1206,7 +1208,7 @@ namespace OpenSim.Region.Communications.OGS1
1206 } 1208 }
1207 catch (RemotingException e) 1209 catch (RemotingException e)
1208 { 1210 {
1209 MainLog.Instance.Error("Remoting Error: Unable to connect to adjacent region.\n" + e.ToString()); 1211 m_log.Error("Remoting Error: Unable to connect to adjacent region.\n" + e.ToString());
1210 return false; 1212 return false;
1211 } 1213 }
1212 } 1214 }
@@ -1226,7 +1228,7 @@ namespace OpenSim.Region.Communications.OGS1
1226 } 1228 }
1227 catch (RemotingException e) 1229 catch (RemotingException e)
1228 { 1230 {
1229 MainLog.Instance.Error("Remoting Error: Unable to connect to adjacent region.\n" + e.ToString()); 1231 m_log.Error("Remoting Error: Unable to connect to adjacent region.\n" + e.ToString());
1230 return false; 1232 return false;
1231 } 1233 }
1232 } 1234 }
@@ -1239,7 +1241,7 @@ namespace OpenSim.Region.Communications.OGS1
1239 } 1241 }
1240 catch (RemotingException e) 1242 catch (RemotingException e)
1241 { 1243 {
1242 MainLog.Instance.Error("Remoting Error: Unable to connect to adjacent region.\n" + e.ToString()); 1244 m_log.Error("Remoting Error: Unable to connect to adjacent region.\n" + e.ToString());
1243 return false; 1245 return false;
1244 } 1246 }
1245 } 1247 }
@@ -1252,7 +1254,7 @@ namespace OpenSim.Region.Communications.OGS1
1252 } 1254 }
1253 catch (RemotingException) 1255 catch (RemotingException)
1254 { 1256 {
1255 MainLog.Instance.Verbose("INTERREGION", "Remoting Error: Unable to connect to neighbour to tell it to close a child connection"); 1257 m_log.Info("[INTERREGION]: Remoting Error: Unable to connect to neighbour to tell it to close a child connection");
1256 return false; 1258 return false;
1257 } 1259 }
1258 1260