diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/RegionInfo.cs | 1 | ||||
-rw-r--r-- | OpenSim/Framework/Util.cs | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs index c531e8a..7a3e67f 100644 --- a/OpenSim/Framework/RegionInfo.cs +++ b/OpenSim/Framework/RegionInfo.cs | |||
@@ -627,7 +627,6 @@ namespace OpenSim.Framework | |||
627 | 627 | ||
628 | foreach (String s in allKeys) | 628 | foreach (String s in allKeys) |
629 | { | 629 | { |
630 | string val = config.GetString(s); | ||
631 | SetOtherSetting(s, config.GetString(s)); | 630 | SetOtherSetting(s, config.GetString(s)); |
632 | } | 631 | } |
633 | } | 632 | } |
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index fae6802..dd30c2f 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -1676,13 +1676,14 @@ namespace OpenSim.Framework | |||
1676 | /// </summary> | 1676 | /// </summary> |
1677 | public static void PrintCallStack() | 1677 | public static void PrintCallStack() |
1678 | { | 1678 | { |
1679 | StackTrace stackTrace = new StackTrace(); // get call stack | 1679 | StackTrace stackTrace = new StackTrace(true); // get call stack |
1680 | StackFrame[] stackFrames = stackTrace.GetFrames(); // get method calls (frames) | 1680 | StackFrame[] stackFrames = stackTrace.GetFrames(); // get method calls (frames) |
1681 | 1681 | ||
1682 | // write call stack method names | 1682 | // write call stack method names |
1683 | foreach (StackFrame stackFrame in stackFrames) | 1683 | foreach (StackFrame stackFrame in stackFrames) |
1684 | { | 1684 | { |
1685 | m_log.Debug(stackFrame.GetMethod().DeclaringType + "." + stackFrame.GetMethod().Name); // write method name | 1685 | MethodBase mb = stackFrame.GetMethod(); |
1686 | m_log.DebugFormat("{0}.{1}:{2}", mb.DeclaringType, mb.Name, stackFrame.GetFileLineNumber()); // write method name | ||
1686 | } | 1687 | } |
1687 | } | 1688 | } |
1688 | 1689 | ||