Skip to content

Commit afffa42

Browse files
committed
UI: Hide profiling output if debug messages are disabled
With the label-based profiling interface, it makes sense to run profiling without needing to see all the timings being spammed (as they can always be inspected in aggregate via the UI). Enabling both replicates the original behavior, so there's no loss in functionality.
1 parent 8429eee commit afffa42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Core/Debugging.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ function R:Debug(s, ...)
1717
DebugCache:AddMessage(format(s, ...))
1818
end
1919

20-
if self.db.profile.enableProfiling then
2120
function R:ProfileDebug(s)
21+
if self.db.profile.enableProfiling and self.db.profile.debugMode then
2222
R:Print(s)
2323
end
2424
end

0 commit comments

Comments
 (0)