From f0864b5154374a4fb06640e68a96a27b810fd60b Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 4 Jan 2009 19:09:22 +0000 Subject: * Minor tweak to crash logger to copy ini with log if save-to-dir is on. * Added BinaryGenericMessage handler for cases where GenericMessage isnt transmitting pure-utf8 characters. --- OpenSim/Region/Application/Application.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/Application.cs b/OpenSim/Region/Application/Application.cs index 08dd7df..1b06b30 100644 --- a/OpenSim/Region/Application/Application.cs +++ b/OpenSim/Region/Application/Application.cs @@ -153,12 +153,16 @@ namespace OpenSim { Directory.CreateDirectory(m_crashDir); } + string log = Util.GetUniqueFilename(ex.GetType() + ".txt"); StreamWriter m_crashLog = new StreamWriter( - Path.Combine(m_crashDir, Util.GetUniqueFilename(ex.GetType() + ".txt")) + Path.Combine(m_crashDir, log) ); + m_crashLog.WriteLine(msg); m_crashLog.Close(); + + File.Copy("opensim.ini", Path.Combine(m_crashDir, log + "_opensim.ini")); } catch (Exception e2) { -- cgit v1.1