diff options
Diffstat (limited to 'OpenSim/Region/Physics/BulletSPlugin/Tests/BulletSimTestsUtil.cs')
-rwxr-xr-x | OpenSim/Region/Physics/BulletSPlugin/Tests/BulletSimTestsUtil.cs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/OpenSim/Region/Physics/BulletSPlugin/Tests/BulletSimTestsUtil.cs b/OpenSim/Region/Physics/BulletSPlugin/Tests/BulletSimTestsUtil.cs index 215e92f..28207a4 100755 --- a/OpenSim/Region/Physics/BulletSPlugin/Tests/BulletSimTestsUtil.cs +++ b/OpenSim/Region/Physics/BulletSPlugin/Tests/BulletSimTestsUtil.cs | |||
@@ -26,6 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.IO; | ||
29 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
30 | using System.Linq; | 31 | using System.Linq; |
31 | using System.Text; | 32 | using System.Text; |
@@ -65,9 +66,16 @@ public static class BulletSimTestsUtil | |||
65 | bulletSimConfig.Set(kvp.Key, kvp.Value); | 66 | bulletSimConfig.Set(kvp.Key, kvp.Value); |
66 | } | 67 | } |
67 | } | 68 | } |
68 | // bulletSimConfig.Set("PhysicsLoggingEnabled","True"); | 69 | |
69 | // bulletSimConfig.Set("PhysicsLoggingDoFlush","True"); | 70 | // If a special directory exists, put detailed logging therein. |
70 | // bulletSimConfig.Set("VehicleLoggingEnabled","True"); | 71 | // This allows local testing/debugging without having to worry that the build engine will output logs. |
72 | if (Directory.Exists("physlogs")) | ||
73 | { | ||
74 | bulletSimConfig.Set("PhysicsLoggingDir","./physlogs"); | ||
75 | bulletSimConfig.Set("PhysicsLoggingEnabled","True"); | ||
76 | bulletSimConfig.Set("PhysicsLoggingDoFlush","True"); | ||
77 | bulletSimConfig.Set("VehicleLoggingEnabled","True"); | ||
78 | } | ||
71 | 79 | ||
72 | BSPlugin bsPlugin = new BSPlugin(); | 80 | BSPlugin bsPlugin = new BSPlugin(); |
73 | 81 | ||