From 7276038ca75a6a850e22818c9d77be9322bc8205 Mon Sep 17 00:00:00 2001 From: autismpp Date: Fri, 14 Oct 2016 14:09:35 +0300 Subject: [PATCH] Replace Console.WriteLine with Logger.Log. --- osu.Game/OsuGame.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/osu.Game/OsuGame.cs b/osu.Game/OsuGame.cs index 65e7045445..684cc42d5a 100644 --- a/osu.Game/OsuGame.cs +++ b/osu.Game/OsuGame.cs @@ -22,6 +22,7 @@ using osu.Game.Input; using OpenTK.Input; using System.IO; using osu.Game.Beatmaps.IO; +using osu.Framework.Logging; namespace osu.Game { @@ -62,10 +63,10 @@ namespace osu.Game if (args.Length == 1 && File.Exists(args[0])) { BeatmapIPC.SendMessage(new ImportBeatmap { Path = args[0] }).Wait(); - Console.WriteLine(@"Sent file to running instance"); + Logger.Log(@"Sent file to running instance"); } else - Console.WriteLine(@"osu! does not support multiple running instances."); + Logger.Log(@"osu! does not support multiple running instances.", LoggingTarget.Runtime, LogLevel.Error); Environment.Exit(0); } @@ -79,7 +80,7 @@ namespace osu.Game catch (Exception ex) { // TODO: Show the user some info? - Console.WriteLine($@"Failed to import beatmap: {ex}"); + Logger.Log($@"Failed to import beatmap: {ex}", LoggingTarget.Runtime, LogLevel.Error); } };