aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
authorAdam Frisby2009-01-04 19:09:22 +0000
committerAdam Frisby2009-01-04 19:09:22 +0000
commitf0864b5154374a4fb06640e68a96a27b810fd60b (patch)
tree025e18d610d822f2e74e330bd764461c653d3b70 /OpenSim/Region/Application
parentImprove LOD scaling for anisotropic sculpted prim meshes (diff)
downloadopensim-SC-f0864b5154374a4fb06640e68a96a27b810fd60b.zip
opensim-SC-f0864b5154374a4fb06640e68a96a27b810fd60b.tar.gz
opensim-SC-f0864b5154374a4fb06640e68a96a27b810fd60b.tar.bz2
opensim-SC-f0864b5154374a4fb06640e68a96a27b810fd60b.tar.xz
* 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.
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r--OpenSim/Region/Application/Application.cs6
1 files changed, 5 insertions, 1 deletions
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
153 { 153 {
154 Directory.CreateDirectory(m_crashDir); 154 Directory.CreateDirectory(m_crashDir);
155 } 155 }
156 string log = Util.GetUniqueFilename(ex.GetType() + ".txt");
156 StreamWriter m_crashLog = 157 StreamWriter m_crashLog =
157 new StreamWriter( 158 new StreamWriter(
158 Path.Combine(m_crashDir, Util.GetUniqueFilename(ex.GetType() + ".txt")) 159 Path.Combine(m_crashDir, log)
159 ); 160 );
161
160 m_crashLog.WriteLine(msg); 162 m_crashLog.WriteLine(msg);
161 m_crashLog.Close(); 163 m_crashLog.Close();
164
165 File.Copy("opensim.ini", Path.Combine(m_crashDir, log + "_opensim.ini"));
162 } 166 }
163 catch (Exception e2) 167 catch (Exception e2)
164 { 168 {