diff options
author | Jeff Ames | 2008-02-05 19:44:27 +0000 |
---|---|---|
committer | Jeff Ames | 2008-02-05 19:44:27 +0000 |
commit | 6ed5283bc06a62f38eb517e67b975832b603bf61 (patch) | |
tree | e5f635018789b73a99ddeca0883a68368fa5eece /OpenSim/Framework/Communications/LoginResponse.cs | |
parent | Cut down on the number of packets sent during terraforming. Terraforming shou... (diff) | |
download | opensim-SC-6ed5283bc06a62f38eb517e67b975832b603bf61.zip opensim-SC-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.gz opensim-SC-6ed5283bc06a62f38eb517e67b975832b603bf61.tar.bz2 opensim-SC-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/Framework/Communications/LoginResponse.cs')
-rw-r--r-- | OpenSim/Framework/Communications/LoginResponse.cs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/OpenSim/Framework/Communications/LoginResponse.cs b/OpenSim/Framework/Communications/LoginResponse.cs index 7f8658d..9036884 100644 --- a/OpenSim/Framework/Communications/LoginResponse.cs +++ b/OpenSim/Framework/Communications/LoginResponse.cs | |||
@@ -42,6 +42,8 @@ namespace OpenSim.Framework.UserManagement | |||
42 | /// </summary> | 42 | /// </summary> |
43 | public class LoginResponse | 43 | public class LoginResponse |
44 | { | 44 | { |
45 | private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | ||
46 | |||
45 | private Hashtable loginFlagsHash; | 47 | private Hashtable loginFlagsHash; |
46 | private Hashtable globalTexturesHash; | 48 | private Hashtable globalTexturesHash; |
47 | private Hashtable loginError; | 49 | private Hashtable loginError; |
@@ -362,10 +364,8 @@ namespace OpenSim.Framework.UserManagement | |||
362 | } | 364 | } |
363 | catch (Exception e) | 365 | catch (Exception e) |
364 | { | 366 | { |
365 | MainLog.Instance.Warn( | 367 | m_log.Warn("[CLIENT]: LoginResponse: Error creating XML-RPC Response: " + e.Message); |
366 | "CLIENT", | 368 | |
367 | "LoginResponse: Error creating XML-RPC Response: " + e.Message | ||
368 | ); | ||
369 | return (GenerateFailureResponse("Internal Error", "Error generating Login Response", "false")); | 369 | return (GenerateFailureResponse("Internal Error", "Error generating Login Response", "false")); |
370 | } | 370 | } |
371 | } // ToXmlRpcResponse | 371 | } // ToXmlRpcResponse |
@@ -461,10 +461,8 @@ namespace OpenSim.Framework.UserManagement | |||
461 | } | 461 | } |
462 | catch (Exception e) | 462 | catch (Exception e) |
463 | { | 463 | { |
464 | MainLog.Instance.Warn( | 464 | m_log.Warn("[CLIENT]: LoginResponse: Error creating XML-RPC Response: " + e.Message); |
465 | "CLIENT", | 465 | |
466 | "LoginResponse: Error creating XML-RPC Response: " + e.Message | ||
467 | ); | ||
468 | return GenerateFailureResponseLLSD("Internal Error", "Error generating Login Response", "false"); | 466 | return GenerateFailureResponseLLSD("Internal Error", "Error generating Login Response", "false"); |
469 | } | 467 | } |
470 | } | 468 | } |