[core 6/6] log: remove grl_log_init() calls from tools
- From: Víctor Manuel Jáquez Leal <vjaquez igalia com>
- To: grilo-list gnome org
- Cc: Damien Lespiau <damien lespiau intel com>
- Subject: [core 6/6] log: remove grl_log_init() calls from tools
- Date: Thu, 2 Sep 2010 17:46:07 +0200
From: Damien Lespiau <damien lespiau intel com>
grl-inspect: Now that we default to only print warnings, it's actually
pretty sane to still show those warning that shows errors one should
fix.
grl-test-ui: The default verbosity of the test UI make seeing real
warnings really hard. It's still possible to recover the verbose mode
with GRL_LOG.
testGrilo.js: Remove the Grl.log_init() call and add Grl.init()
grilo-test.vala: Remove Grl.log_init()
https://bugzilla.gnome.org/show_bug.cgi?id=627864
Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez igalia com>
---
tools/grilo-inspect/grl-inspect.c | 1 -
tools/grilo-test-ui/main.c | 1 -
tools/js/testGrilo.js | 2 +-
tools/vala/grilo-test.vala | 1 -
4 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/tools/grilo-inspect/grl-inspect.c b/tools/grilo-inspect/grl-inspect.c
index e1e722f..97f7eb1 100644
--- a/tools/grilo-inspect/grl-inspect.c
+++ b/tools/grilo-inspect/grl-inspect.c
@@ -190,7 +190,6 @@ main (int argc, char *argv[])
}
grl_init (&argc, &argv);
- grl_log_init ("*:-");
registry = grl_plugin_registry_get_default ();
mainloop = g_main_loop_new (NULL, FALSE);
diff --git a/tools/grilo-test-ui/main.c b/tools/grilo-test-ui/main.c
index 6c7e2ed..0728ad4 100644
--- a/tools/grilo-test-ui/main.c
+++ b/tools/grilo-test-ui/main.c
@@ -1771,7 +1771,6 @@ main (int argc, gchar *argv[])
gtk_init (&argc, &argv);
grl_init (&argc, &argv);
GRL_LOG_DOMAIN_INIT (test_ui_log_domain, "test-ui");
- grl_log_init ("*:*");
launchers_setup ();
ui_setup ();
configure_plugins ();
diff --git a/tools/js/testGrilo.js b/tools/js/testGrilo.js
index 5aaa29f..7c5aea6 100644
--- a/tools/js/testGrilo.js
+++ b/tools/js/testGrilo.js
@@ -16,7 +16,6 @@ function SimplePlayList () {
SimplePlayList.prototype = {
_init: function () {
- Grl.log_init ("*:-");
let registry = Grl.PluginRegistry.get_default ();
let sources = [];
@@ -58,6 +57,7 @@ SimplePlayList.prototype = {
}
};
+Grl.init (0, null);
let playList = new SimplePlayList ();
if (ARGV[0] != null) {
diff --git a/tools/vala/grilo-test.vala b/tools/vala/grilo-test.vala
index b1fc6a7..26cdb6a 100644
--- a/tools/vala/grilo-test.vala
+++ b/tools/vala/grilo-test.vala
@@ -6,7 +6,6 @@ public class SimplePlaylist : Object {
int processed_sources = 0;
construct {
- Grl.log_init ("*:-");
var registry = Grl.PluginRegistry.get_default ();
registry.source_added.connect (source_added_cb);
--
1.7.1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]