[grilo-plugins/0.1.x] all: Log missing configuration keys with INFO instead of WARNING
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/0.1.x] all: Log missing configuration keys with INFO instead of WARNING
- Date: Mon, 23 May 2011 08:29:17 +0000 (UTC)
commit fb5068cb6864e58860d33a5339ebfd1330963e5f
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Mon May 23 10:05:32 2011 +0200
all: Log missing configuration keys with INFO instead of WARNING
Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>
src/media/flickr/grl-flickr.c | 5 +++--
src/media/tracker/grl-tracker.c | 6 +++---
src/media/vimeo/grl-vimeo.c | 7 ++++---
src/media/youtube/grl-youtube.c | 6 +++---
4 files changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/src/media/flickr/grl-flickr.c b/src/media/flickr/grl-flickr.c
index e1ceed3..a0d1e7f 100644
--- a/src/media/flickr/grl-flickr.c
+++ b/src/media/flickr/grl-flickr.c
@@ -126,7 +126,7 @@ grl_flickr_plugin_init (GrlPluginRegistry *registry,
GRL_DEBUG ("flickr_plugin_init");
if (!configs) {
- GRL_WARNING ("Missing configuration");
+ GRL_INFO ("Configuration not provided! Plugin not loaded");
return FALSE;
}
@@ -138,7 +138,8 @@ grl_flickr_plugin_init (GrlPluginRegistry *registry,
flickr_secret = grl_config_get_api_secret (config);
if (!flickr_key || !flickr_secret) {
- GRL_WARNING ("Required configuration keys not set up");
+ GRL_INFO ("Required API key or secret configuration not provdied. "
+ " Plugin not loaded");
} else if (flickr_token) {
grl_flickr_source_personal_new (plugin,
flickr_key,
diff --git a/src/media/tracker/grl-tracker.c b/src/media/tracker/grl-tracker.c
index 097858f..bcaede7 100644
--- a/src/media/tracker/grl-tracker.c
+++ b/src/media/tracker/grl-tracker.c
@@ -195,7 +195,7 @@ tracker_get_connection_cb (GObject *object,
grl_tracker_connection = tracker_sparql_connection_get_finish (res, &error);
if (error) {
- GRL_WARNING ("Could not get connection to Tracker: %s", error->message);
+ GRL_INFO ("Could not get connection to Tracker: %s", error->message);
g_error_free (error);
return;
}
@@ -225,11 +225,11 @@ grl_tracker_plugin_init (GrlPluginRegistry *registry,
grl_tracker_plugin = plugin;
if (!configs) {
- GRL_WARNING ("\tConfiguration not provided! Using default configuration.");
+ GRL_INFO ("\tConfiguration not provided! Using default configuration.");
} else {
config_count = g_list_length (configs);
if (config_count > 1) {
- GRL_WARNING ("\tProvided %i configs, but will only use one", config_count);
+ GRL_INFO ("\tProvided %i configs, but will only use one", config_count);
}
config = GRL_CONFIG (configs->data);
diff --git a/src/media/vimeo/grl-vimeo.c b/src/media/vimeo/grl-vimeo.c
index cd2b0f4..42edc8b 100644
--- a/src/media/vimeo/grl-vimeo.c
+++ b/src/media/vimeo/grl-vimeo.c
@@ -100,13 +100,13 @@ grl_vimeo_plugin_init (GrlPluginRegistry *registry,
}
if (!configs) {
- GRL_WARNING ("Missing configuration");
+ GRL_INFO ("Configuration not provided! Plugin not loaded");
return FALSE;
}
config_count = g_list_length (configs);
if (config_count > 1) {
- GRL_WARNING ("Provided %d configs, but will only use one", config_count);
+ GRL_INFO ("Provided %d configs, but will only use one", config_count);
}
config = GRL_CONFIG (configs->data);
@@ -115,7 +115,8 @@ grl_vimeo_plugin_init (GrlPluginRegistry *registry,
vimeo_secret = grl_config_get_api_secret (config);
if (!vimeo_key || !vimeo_secret) {
- GRL_WARNING ("Required configuration keys not set up");
+ GRL_INFO ("Required API key or secret configuration not provided."
+ " Plugin not loaded");
goto go_out;
}
diff --git a/src/media/youtube/grl-youtube.c b/src/media/youtube/grl-youtube.c
index ebf30f0..07b407b 100644
--- a/src/media/youtube/grl-youtube.c
+++ b/src/media/youtube/grl-youtube.c
@@ -261,19 +261,19 @@ grl_youtube_plugin_init (GrlPluginRegistry *registry,
GRL_DEBUG ("youtube_plugin_init");
if (!configs) {
- GRL_WARNING ("Configuration not provided! Cannot configure plugin.");
+ GRL_INFO ("Configuration not provided! Plugin not loaded");
return FALSE;
}
config_count = g_list_length (configs);
if (config_count > 1) {
- GRL_WARNING ("Provided %d configs, but will only use one", config_count);
+ GRL_INFO ("Provided %d configs, but will only use one", config_count);
}
config = GRL_CONFIG (configs->data);
api_key = grl_config_get_api_key (config);
if (!api_key) {
- GRL_WARNING ("Missing API Key, cannot configure Youtube plugin");
+ GRL_INFO ("Missing API Key, cannot load plugin");
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]