mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Add logging on comment post failure
This commit is contained in:
@ -19,6 +19,7 @@ using osu.Framework.Threading;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
using osu.Framework.Localisation;
|
using osu.Framework.Localisation;
|
||||||
|
using osu.Framework.Logging;
|
||||||
using osu.Game.Graphics.Sprites;
|
using osu.Game.Graphics.Sprites;
|
||||||
using osu.Game.Resources.Localisation.Web;
|
using osu.Game.Resources.Localisation.Web;
|
||||||
using osu.Game.Users.Drawables;
|
using osu.Game.Users.Drawables;
|
||||||
@ -420,9 +421,10 @@ namespace osu.Game.Overlays.Comments
|
|||||||
{
|
{
|
||||||
ShowLoadingSpinner = true;
|
ShowLoadingSpinner = true;
|
||||||
CommentPostRequest req = new CommentPostRequest(commentsContainer.Type.Value, commentsContainer.Id.Value, text);
|
CommentPostRequest req = new CommentPostRequest(commentsContainer.Type.Value, commentsContainer.Id.Value, text);
|
||||||
req.Failure += _ => Schedule(() =>
|
req.Failure += e => Schedule(() =>
|
||||||
{
|
{
|
||||||
ShowLoadingSpinner = false;
|
ShowLoadingSpinner = false;
|
||||||
|
Logger.Error(e, "Posting comment failed.");
|
||||||
});
|
});
|
||||||
req.Success += cb => Schedule(() =>
|
req.Success += cb => Schedule(() =>
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user