Commit 915bc8e9 authored by Erik Reider's avatar Erik Reider

Use more sensible levels of logging methods

parent 84f38b67
......@@ -311,7 +311,7 @@ public int command_line (ref string[] args, bool skip_wait) {
stderr.printf ("Could not find monitor: \"%s\"!", args[1]);
break;
default:
print ("Unknown command: \"%s\"\n", args[0]);
printerr ("Unknown command: \"%s\"\n", args[0]);
print_help (args);
break;
}
......
......@@ -47,7 +47,7 @@ namespace SwayNotificationCenter.Widgets {
Json.Object ? props = null;
bool result = config.lookup_extended (key, out orig_key, out props);
if (!result || orig_key == null || props == null) {
critical ("%s: Config not found! Using default config...\n", key);
warning ("%s: Config not found! Using default config...\n", key);
return null;
}
return props;
......
......@@ -174,7 +174,7 @@ namespace SwayNotificationCenter {
if (File.new_for_path (custom_path).query_exists ()) {
paths += custom_path;
} else {
critical ("Custom config file \"%s\" not found, skipping...", custom_path);
warning ("Custom config file \"%s\" not found, skipping...", custom_path);
}
}
paths += Path.build_path (Path.DIR_SEPARATOR.to_string (),
......
......@@ -509,7 +509,7 @@ namespace SwayNotificationCenter {
try {
swaync_daemon.set_visibility (false);
} catch (Error e) {
print ("Error: %s\n", e.message);
critical ("Error: %s\n", e.message);
}
}
}
......
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