Skip to content

Commit e9ab597

Browse files
committed
修复日志等级记录错误
1 parent 30795c4 commit e9ab597

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/DotNetCampus.Logger/LoggerExtensions.g.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static void Warn(this ILogger logger, string message, Exception? exceptio
6969
/// <param name="exception">如果有异常信息,可以传入此参数。</param>
7070
public static void Error(this ILogger logger, string message, Exception? exception = null)
7171
{
72-
logger.Log(LogLevel.Warning, default, message, null, (s, ex) => message);
72+
logger.Log(LogLevel.Error, default, message, null, (s, ex) => message);
7373
}
7474

7575
/// <summary>

0 commit comments

Comments
 (0)