mirror of https://github.com/ppy/osu
use log
This commit is contained in:
parent
ba345e5591
commit
9e1eb50d9b
|
@ -5,6 +5,7 @@
|
|||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using osu.Framework.Logging;
|
||||
using osu.Framework.Platform;
|
||||
using osu.Game.Extensions;
|
||||
using osu.Game.Overlays.Notifications;
|
||||
|
@ -12,6 +13,7 @@
|
|||
using SharpCompress.Common;
|
||||
using SharpCompress.Writers;
|
||||
using SharpCompress.Writers.Zip;
|
||||
using Logger = osu.Framework.Logging.Logger;
|
||||
|
||||
namespace osu.Game.Database
|
||||
{
|
||||
|
@ -54,10 +56,7 @@ private void exportZipArchive(TModel model, Stream outputStream, ProgressNotific
|
|||
// Only pop up once to prevent spam.
|
||||
if (!fileMissing)
|
||||
{
|
||||
PostNotification?.Invoke(new SimpleErrorNotification
|
||||
{
|
||||
Text = "Some of your files are missing, they will not be included in the archive"
|
||||
});
|
||||
Logger.Log("Some of model files are missing, they will not be included in the archive", LoggingTarget.Database, LogLevel.Error);
|
||||
fileMissing = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue