Skip to content

Commit

Permalink
Merge pull request #460 from DhairyaLGandhi/dg/warn
Browse files Browse the repository at this point in the history
Fix Logging Repeatedly
  • Loading branch information
ChrisRackauckas authored Jun 27, 2023
2 parents d7a51f7 + c89d544 commit 8f2661e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/performance_warnings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ set_preferences!(UUID("1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"), "PerformanceWarni
"""
function warn_paramtype(p, warn_performance = PERFORMANCE_WARNINGS)
if warn_performance && should_warn_paramtype(p)
@warn(WARN_PARAMTYPE_MESSAGE)
@warn WARN_PARAMTYPE_MESSAGE maxlog=1
end
end

0 comments on commit 8f2661e

Please sign in to comment.