diff options
author | UbitUmarov | 2012-02-15 03:51:30 +0000 |
---|---|---|
committer | UbitUmarov | 2012-02-15 03:51:30 +0000 |
commit | 04279e36d1bc01f966940eb8cc0457064356fced (patch) | |
tree | bff74b33a2cf072877e8f1d876944905399d4be6 /OpenSim/Framework/Util.cs | |
parent | remove drawstuff from ubitode (diff) | |
parent | Merge branch 'master' of ssh://melanie@3dhosting.de/var/git/careminster into ... (diff) | |
download | opensim-SC-04279e36d1bc01f966940eb8cc0457064356fced.zip opensim-SC-04279e36d1bc01f966940eb8cc0457064356fced.tar.gz opensim-SC-04279e36d1bc01f966940eb8cc0457064356fced.tar.bz2 opensim-SC-04279e36d1bc01f966940eb8cc0457064356fced.tar.xz |
Merge branch 'master' of ssh://3dhosting.de/var/git/careminster into ubitwork
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r-- | OpenSim/Framework/Util.cs | 5 |
1 files changed, 3 insertions, 2 deletions
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 | ||