config: demote non-critical warnings to debug

parent 1f88310e
......@@ -30,7 +30,7 @@ namespace XimperShellNotificationCenter.Widgets {
Json.Object ?props = null;
bool result = config.lookup_extended (key, out orig_key, out props);
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 props;
......
......@@ -211,9 +211,8 @@ namespace XimperShellNotificationCenter {
public bool set_cc_monitor (string name) throws DBusError, IOError {
if (!app.use_layer_shell) {
critical (
"Setting Control Center monitor isn't supported "
+ "when layer shell is disabled!");
debug ("Setting Control Center monitor isn't supported "
+ "when layer shell is disabled");
return false;
}
unowned Gdk.Monitor ?monitor = Functions.try_get_monitor (name);
......@@ -227,9 +226,8 @@ namespace XimperShellNotificationCenter {
public bool set_noti_window_monitor (string name) throws DBusError, IOError {
if (!app.use_layer_shell) {
critical (
"Setting Notification Window monitor isn't supported "
+ "when layer shell is disabled!");
debug ("Setting Notification Window monitor isn't supported "
+ "when layer shell is disabled");
return false;
}
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