diff options
Diffstat (limited to 'OpenSim/Region/Application/Application.cs')
-rw-r--r-- | OpenSim/Region/Application/Application.cs | 6 |
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 | { |