Skip to content

Commit 9fb5469

Browse files
committed
Don't write to console, use logger
1 parent 9ec4e7d commit 9fb5469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LinkDotNet.Blog.Web/Features/Services/UserRecordService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private async ValueTask<bool> HasKeyAsync()
8585
}
8686
catch (Exception e)
8787
{
88-
Console.WriteLine($"Couldn't obtain key: \"user\": {e}");
88+
logger.LogError("Couldn't obtain key for user: {Exception}", e);
8989
return false;
9090
}
9191
}

0 commit comments

Comments
 (0)