mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-07 19:22:26 +00:00
Make logger a non-static class
This commit is contained in:
parent
c345eeebb9
commit
630b38e7bb
27 changed files with 167 additions and 141 deletions
|
@ -44,14 +44,14 @@ public class SlotPageController : ControllerBase
|
|||
|
||||
if (msg == null)
|
||||
{
|
||||
Logger.LogError($"Refusing to post comment from {user.UserId} on user {id}, {nameof(msg)} is null", LogArea.Comments);
|
||||
Logger.Error($"Refusing to post comment from {user.UserId} on user {id}, {nameof(msg)} is null", LogArea.Comments);
|
||||
return this.Redirect("~/slot/" + id);
|
||||
}
|
||||
|
||||
msg = SanitizationHelper.SanitizeString(msg);
|
||||
|
||||
await this.database.PostComment(user, id, CommentType.Level, msg);
|
||||
Logger.LogSuccess($"Posted comment from {user.UserId}: \"{msg}\" on user {id}", LogArea.Comments);
|
||||
Logger.Success($"Posted comment from {user.UserId}: \"{msg}\" on user {id}", LogArea.Comments);
|
||||
|
||||
return this.Redirect("~/slot/" + id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue