aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorDan Lake2013-02-06 16:42:55 -0800
committerDan Lake2013-02-06 16:44:59 -0800
commitdf37738ce7702774c4d3ff1f3835bfe87e0f1a5e (patch)
tree67293c7ed7345837caccdbd880770be3f680a475 /OpenSim/Region
parentBulletSim: remove degenerate triangles from meshes. This fixes the (diff)
downloadopensim-SC_OLD-df37738ce7702774c4d3ff1f3835bfe87e0f1a5e.zip
opensim-SC_OLD-df37738ce7702774c4d3ff1f3835bfe87e0f1a5e.tar.gz
opensim-SC_OLD-df37738ce7702774c4d3ff1f3835bfe87e0f1a5e.tar.bz2
opensim-SC_OLD-df37738ce7702774c4d3ff1f3835bfe87e0f1a5e.tar.xz
WebStats will now use actual logfile as specified in OpenSim.exe.config rather than hardcoded ./OpenSim.log. This allows for rotating logs and other file appender types
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/UserStatistics/WebStatsModule.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/UserStatistics/WebStatsModule.cs b/OpenSim/Region/UserStatistics/WebStatsModule.cs
index 438ef48..b98b762 100644
--- a/OpenSim/Region/UserStatistics/WebStatsModule.cs
+++ b/OpenSim/Region/UserStatistics/WebStatsModule.cs
@@ -420,7 +420,7 @@ namespace OpenSim.Region.UserStatistics
420 Encoding encoding = Encoding.ASCII; 420 Encoding encoding = Encoding.ASCII;
421 int sizeOfChar = encoding.GetByteCount("\n"); 421 int sizeOfChar = encoding.GetByteCount("\n");
422 byte[] buffer = encoding.GetBytes("\n"); 422 byte[] buffer = encoding.GetBytes("\n");
423 string logfile = Util.logDir() + "/" + "OpenSim.log"; 423 string logfile = Util.logFile();
424 FileStream fs = new FileStream(logfile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); 424 FileStream fs = new FileStream(logfile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
425 Int64 tokenCount = 0; 425 Int64 tokenCount = 0;
426 Int64 endPosition = fs.Length / sizeOfChar; 426 Int64 endPosition = fs.Length / sizeOfChar;