Skip to content

Commit

Permalink
Fix IsInfoEnabled on Error bug (#7185) (#7186)
Browse files Browse the repository at this point in the history
Co-authored-by: aakjaergaard <aasmund@webmed.no>
  • Loading branch information
Hannott and aakjaergaard committed May 6, 2024
1 parent ba3639e commit da8c8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Akka/Event/ILoggingAdapter.cs
Expand Up @@ -493,7 +493,7 @@ public static void Error<T1>(this ILoggingAdapter log, Exception cause, string f
public static void Error<T1, T2, T3, T4>(this ILoggingAdapter log, Exception cause, string format, T1 arg1,
T2 arg2, T3 arg3, T4 arg4)
{
if (!log.IsInfoEnabled)
if (!log.IsErrorEnabled)
return;

log.Log(LogLevel.ErrorLevel, cause, format, arg1, arg2, arg3, arg4);
Expand Down

0 comments on commit da8c8bb

Please sign in to comment.