diff options
author | Dan Lake | 2013-02-06 16:42:55 -0800 |
---|---|---|
committer | Dan Lake | 2013-02-06 16:44:59 -0800 |
commit | df37738ce7702774c4d3ff1f3835bfe87e0f1a5e (patch) | |
tree | 67293c7ed7345837caccdbd880770be3f680a475 /OpenSim/Region/UserStatistics | |
parent | BulletSim: remove degenerate triangles from meshes. This fixes the (diff) | |
download | opensim-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/UserStatistics')
-rw-r--r-- | OpenSim/Region/UserStatistics/WebStatsModule.cs | 2 |
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; |