This repository was archived by the owner on Dec 13, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,11 @@ public static DisposableTimer DebugDuration<T>(string startMessage)
2727 /// <returns>Returns an instance of the disposable timer.</returns>
2828 public static DisposableTimer DebugDuration ( Type loggerType , string startMessage )
2929 {
30- #if DEBUG
31- if ( Ditto . IsProfilingEnabled ( ) && ApplicationContext . Current ? . ProfilingLogger != null )
30+ if ( Ditto . IsDebuggingEnabled && Ditto . IsProfilingEnabled ( ) && ApplicationContext . Current ? . ProfilingLogger != null )
3231 {
3332 return ApplicationContext . Current . ProfilingLogger . DebugDuration ( loggerType , startMessage , "Complete" ) ;
3433 }
35- #endif
34+
3635 return default ( DisposableTimer ) ;
3736 }
3837 }
Original file line number Diff line number Diff line change @@ -81,9 +81,6 @@ internal static bool GetDebugFlag()
8181 /// </summary>
8282 internal static bool IsProfilingEnabled ( )
8383 {
84- if ( IsDebuggingEnabled == false )
85- return false ;
86-
8784 var qs = HttpContext . Current ? . Request ? . QueryString ? [ "umbDebug" ] ;
8885 if ( string . IsNullOrWhiteSpace ( qs ) == false && bool . TryParse ( qs , out bool umbDebug ) )
8986 {
You can’t perform that action at this time.
0 commit comments