[rygel] core: Fix Log level Error



commit 5a64eec2b63b8f6cd761f21ef02aa896e652b4bf
Author: Jens Georg <mail jensge org>
Date:   Sun Jun 26 16:32:57 2016 +0200

    core: Fix Log level Error
    
    Error and Critical were swapped
    
    Signed-off-by: Jens Georg <mail jensge org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=768010

 src/librygel-core/rygel-log-handler.vala |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/librygel-core/rygel-log-handler.vala b/src/librygel-core/rygel-log-handler.vala
index daae1c6..8db72d1 100644
--- a/src/librygel-core/rygel-log-handler.vala
+++ b/src/librygel-core/rygel-log-handler.vala
@@ -25,8 +25,8 @@ using Gee;
 
 public enum Rygel.LogLevel {
     INVALID = 0,
-    CRITICAL = 1,
-    ERROR = 2,
+    ERROR = 1,
+    CRITICAL = 2,
     WARNING = 3,
     INFO = 4,
     DEFAULT = 4,
@@ -117,10 +117,10 @@ public class Rygel.LogHandler : GLib.Object {
         LogLevelFlags flags = DEFAULT_FLAGS;
 
         switch (level) {
-            case LogLevel.CRITICAL:
-                flags = LogLevelFlags.LEVEL_CRITICAL;
-                break;
             case LogLevel.ERROR:
+                flags = LogLevelFlags.LEVEL_ERROR;
+                break;
+            case LogLevel.CRITICAL:
                 flags = LogLevelFlags.LEVEL_CRITICAL |
                         LogLevelFlags.LEVEL_ERROR;
                 break;


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