mirror of
https://github.com/ppy/osu.git
synced 2025-01-19 09:12:54 +08:00
Add logging on comment post failure
This commit is contained in:
parent
1480c691ae
commit
3640342805
@ -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(() =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user