From a01bc023908eaf46ff108d9f6d628bdb0597d5fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Wed, 13 Jan 2016 11:56:59 +0100 Subject: [PATCH] Log sound parsing errors in sound.log --- OpenRA.Game/FileFormats/AudLoader.cs | 4 ++-- OpenRA.Game/FileFormats/WavLoader.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenRA.Game/FileFormats/AudLoader.cs b/OpenRA.Game/FileFormats/AudLoader.cs index 847223a85d..c48f852807 100644 --- a/OpenRA.Game/FileFormats/AudLoader.cs +++ b/OpenRA.Game/FileFormats/AudLoader.cs @@ -182,8 +182,8 @@ namespace OpenRA.FileFormats // If not, it will simply return false so we know we can't use it. If it is, it will start // parsing the data without any further failsafes, which means that it will crash on corrupted files // (that end prematurely or otherwise don't conform to the specifications despite the headers being OK). - Log.Write("debug", "Failed to parse AUD file {0}. Error message:".F(fileName)); - Log.Write("debug", e.ToString()); + Log.Write("sound", "Failed to parse AUD file {0}. Error message:".F(fileName)); + Log.Write("sound", e.ToString()); rawData = null; return false; } diff --git a/OpenRA.Game/FileFormats/WavLoader.cs b/OpenRA.Game/FileFormats/WavLoader.cs index 3f7d3fba2a..297c733ca8 100644 --- a/OpenRA.Game/FileFormats/WavLoader.cs +++ b/OpenRA.Game/FileFormats/WavLoader.cs @@ -201,8 +201,8 @@ namespace OpenRA.FileFormats // If not, it will simply return false so we know we can't use it. If it is, it will start // parsing the data without any further failsafes, which means that it will crash on corrupted files // (that end prematurely or otherwise don't conform to the specifications despite the headers being OK). - Log.Write("debug", "Failed to parse WAV file {0}. Error message:".F(fileName)); - Log.Write("debug", e.ToString()); + Log.Write("sound", "Failed to parse WAV file {0}. Error message:".F(fileName)); + Log.Write("sound", e.ToString()); return false; }