[gnome-subtitles/gtk3] Minor changes to console logging



commit 994be30e5900906e47d296591cc74a4642bcbc43
Author: Pedro Castro <pedro gnomesubtitles org>
Date:   Sat Dec 2 15:25:19 2017 +0000

    Minor changes to console logging

 src/GnomeSubtitles/Core/SpellLanguages.cs    |    4 ++--
 src/GnomeSubtitles/Ui/VideoPreview/Player.cs |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/GnomeSubtitles/Core/SpellLanguages.cs b/src/GnomeSubtitles/Core/SpellLanguages.cs
index bdef2d1..417b400 100644
--- a/src/GnomeSubtitles/Core/SpellLanguages.cs
+++ b/src/GnomeSubtitles/Core/SpellLanguages.cs
@@ -127,7 +127,7 @@ public class SpellLanguages {
                else
                        activeLanguage = languages[index] as SpellLanguage;
 
-               System.Console.Error.WriteLine("Setting active language: " + (activeLanguage == null ? 
"none." : activeLanguage.ID));
+               System.Console.WriteLine("[Spellcheck] Setting active language: {0}", (activeLanguage == null 
? "none." : activeLanguage.ID));
 
                /* Set index variable */
                if (textType == SubtitleTextType.Text)
@@ -173,7 +173,7 @@ public class SpellLanguages {
                enchant_broker_free(broker);
 
                languages.Sort();
-               System.Console.Error.WriteLine("Got " + languages.Count + " languages.");
+               System.Console.WriteLine("[Spellcheck] Found {0} languages", languages.Count);
        }
 
        private void GetActiveLanguagesFromConfig () {
diff --git a/src/GnomeSubtitles/Ui/VideoPreview/Player.cs b/src/GnomeSubtitles/Ui/VideoPreview/Player.cs
index 6dcf624..b65001e 100644
--- a/src/GnomeSubtitles/Ui/VideoPreview/Player.cs
+++ b/src/GnomeSubtitles/Ui/VideoPreview/Player.cs
@@ -252,7 +252,7 @@ public class Player {
        }
 
        private void OnPlaybinFoundVideoInfo (VideoInfoEventArgs args) {
-               Console.Error.WriteLine("Got video info: " + args.VideoInfo.ToString());
+               Console.WriteLine("[Player] Media info: " + args.VideoInfo.ToString());
                this.videoInfo = args.VideoInfo;
 
                /* Set defaults if there is no video */
@@ -270,7 +270,7 @@ public class Player {
        private void OnPlaybinFoundTag (TagEventArgs args) {
                if ((!hasFoundDuration) && (FoundDuration != null) && (playbin.Duration != TimeSpan.Zero)) {
                        TimeSpan duration = playbin.Duration;
-                       Console.Error.WriteLine("Got video duration: " + duration);
+                       Console.WriteLine("[Player] Media duration: " + duration);
 
                        hasFoundDuration = true;
                        FoundDuration(duration);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]