config: demote non-critical warnings to debug

parent 1f88310e
...@@ -30,7 +30,7 @@ namespace XimperShellNotificationCenter.Widgets { ...@@ -30,7 +30,7 @@ namespace XimperShellNotificationCenter.Widgets {
Json.Object ?props = null; Json.Object ?props = null;
bool result = config.lookup_extended (key, out orig_key, out props); bool result = config.lookup_extended (key, out orig_key, out props);
if (!result || orig_key == null || props == null) { if (!result || orig_key == null || props == null) {
warning ("%s: Config not found! Using default config...\n", key); debug ("%s: Config not found, using defaults", key);
return null; return null;
} }
return props; return props;
......
...@@ -211,9 +211,8 @@ namespace XimperShellNotificationCenter { ...@@ -211,9 +211,8 @@ namespace XimperShellNotificationCenter {
public bool set_cc_monitor (string name) throws DBusError, IOError { public bool set_cc_monitor (string name) throws DBusError, IOError {
if (!app.use_layer_shell) { if (!app.use_layer_shell) {
critical ( debug ("Setting Control Center monitor isn't supported "
"Setting Control Center monitor isn't supported " + "when layer shell is disabled");
+ "when layer shell is disabled!");
return false; return false;
} }
unowned Gdk.Monitor ?monitor = Functions.try_get_monitor (name); unowned Gdk.Monitor ?monitor = Functions.try_get_monitor (name);
...@@ -227,9 +226,8 @@ namespace XimperShellNotificationCenter { ...@@ -227,9 +226,8 @@ namespace XimperShellNotificationCenter {
public bool set_noti_window_monitor (string name) throws DBusError, IOError { public bool set_noti_window_monitor (string name) throws DBusError, IOError {
if (!app.use_layer_shell) { if (!app.use_layer_shell) {
critical ( debug ("Setting Notification Window monitor isn't supported "
"Setting Notification Window monitor isn't supported " + "when layer shell is disabled");
+ "when layer shell is disabled!");
return false; return false;
} }
unowned Gdk.Monitor ?monitor = Functions.try_get_monitor (name); unowned Gdk.Monitor ?monitor = Functions.try_get_monitor (name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment