diff options
author | onefang | 2020-09-09 04:33:43 +1000 |
---|---|---|
committer | onefang | 2020-09-09 04:33:43 +1000 |
commit | 0fa5ff0ec03e5dfd6ebdd9af2268e0c33796368d (patch) | |
tree | 2abffa5e6450eb654f1aa21f9ed46d5cf7a4d7c1 /OpenSim/Region/ClientStack/Linden | |
parent | Update version number stuff, and hack it into the money display. (diff) | |
download | opensim-SC-0fa5ff0ec03e5dfd6ebdd9af2268e0c33796368d.zip opensim-SC-0fa5ff0ec03e5dfd6ebdd9af2268e0c33796368d.tar.gz opensim-SC-0fa5ff0ec03e5dfd6ebdd9af2268e0c33796368d.tar.bz2 opensim-SC-0fa5ff0ec03e5dfd6ebdd9af2268e0c33796368d.tar.xz |
Various logging fix ups.
Mostly removing console spam.
Swap a bunch of info / debug logs.
Better archiver console spam.
Have some "avatar has left" mesasge hit the INFO console.
Tweak the login logging a bit, especially for impersonations.
Default to INFO on the console and DEBUG in the log files.
More time stamp resolution.
Better sim startup console notification.
Attempt to render "[LLUDPSERVER]: Malformed data, cannot parse" into
something human readable as an aid to diagnosis. Beats hand translating
the big block of hex codes it was spewing.
Better sim startup finished messages. Inform neighbours we are up
before the finished messages. Always send the "[RegionReady]:
INITIALIZATION COMPLETE FOR" message.
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs index 6994efb..c3ee6ab 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | |||
@@ -33,6 +33,8 @@ using System.IO; | |||
33 | using System.Net; | 33 | using System.Net; |
34 | using System.Net.Sockets; | 34 | using System.Net.Sockets; |
35 | using System.Reflection; | 35 | using System.Reflection; |
36 | using System.Text; | ||
37 | using System.Text.RegularExpressions; | ||
36 | using System.Threading; | 38 | using System.Threading; |
37 | using log4net; | 39 | using log4net; |
38 | using Nini.Config; | 40 | using Nini.Config; |
@@ -1319,8 +1321,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
1319 | { | 1321 | { |
1320 | if (IncomingMalformedPacketCount < 100) | 1322 | if (IncomingMalformedPacketCount < 100) |
1321 | { | 1323 | { |
1322 | m_log.WarnFormat("[LLUDPSERVER]: Malformed data, cannot parse {0} byte packet from {1}, data {2}:", | 1324 | m_log.WarnFormat("[LLUDPSERVER]: Malformed data, cannot parse {0} byte packet from {1}, data as hex {2}: {3}", |
1323 | buffer.DataLength, buffer.RemoteEndPoint, Utils.BytesToHexString(buffer.Data, buffer.DataLength, null)); | 1325 | buffer.DataLength, buffer.RemoteEndPoint, Utils.BytesToHexString(buffer.Data, buffer.DataLength, null), |
1326 | Regex.Replace(Encoding.UTF8.GetString(buffer.Data, 0, buffer.DataLength), @"\p{Cc}", a=>string.Format("[{0:X2}]", (byte)a.Value[0]))); | ||
1324 | } | 1327 | } |
1325 | 1328 | ||
1326 | RecordMalformedInboundPacket(endPoint); | 1329 | RecordMalformedInboundPacket(endPoint); |