[tracker/miner-web: 16/17] Facebook miner: turn some criticals into warnings
- From: Adrien Bustany <abustany src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/miner-web: 16/17] Facebook miner: turn some criticals into warnings
- Date: Fri, 6 Nov 2009 13:08:25 +0000 (UTC)
commit 97bd577ed9f9f33a38872787c6a1b39572bfb206
Author: Adrien Bustany <madcat mymadcat com>
Date: Fri Nov 6 09:48:15 2009 -0300
Facebook miner: turn some criticals into warnings
src/tracker-miner-facebook/facebook.vala | 34 +++++++++++++++---------------
1 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/src/tracker-miner-facebook/facebook.vala b/src/tracker-miner-facebook/facebook.vala
index d4c0bc4..0aeadb2 100644
--- a/src/tracker-miner-facebook/facebook.vala
+++ b/src/tracker-miner-facebook/facebook.vala
@@ -70,7 +70,7 @@ public class FacebookMiner : Tracker.Miner, Tracker.MinerWeb {
try {
Authenticate ();
} catch (Error e) {
- critical ("Error while authenticating : %s", e.message);
+ warning ("Error while authenticating : %s", e.message);
}
}
@@ -109,14 +109,14 @@ public class FacebookMiner : Tracker.Miner, Tracker.MinerWeb {
try {
node = runCall (c);
} catch (MinerWebError e) {
- critical ("Error during REST call : %s", e.message);
+ warning ("Error during REST call : %s", e.message);
throw e;
}
if (node.name != "auth_createToken_response") {
#if DEBUG
- critical (_("Got answer %s\n", c.get_payload ()));
- critical (_("Couldn't get authentication token"));
+ warning (_("Got answer %s\n", c.get_payload ()));
+ warning (_("Couldn't get authentication token"));
//error (new MinerWebError.SERVICE (_("Couldn't get authentication token")));
#endif
return ret;
@@ -149,8 +149,8 @@ public class FacebookMiner : Tracker.Miner, Tracker.MinerWeb {
if (node.name != "auth_getSession_response") {
#if DEBUG
- critical ("Got answer %s\n", c.get_payload ());
- critical ("Couldn't get session token");
+ warning ("Got answer %s\n", c.get_payload ());
+ warning ("Couldn't get session token");
#endif
throw new MinerWebError.SERVICE (_(REST_ERRORMSG), node.find ("error_msg").content);
}
@@ -163,7 +163,7 @@ public class FacebookMiner : Tracker.Miner, Tracker.MinerWeb {
try {
PasswordProvider.password_provider.store (SERVICE_NAME, SERVICE_DESCRIPTION, session, secret);
} catch (Error e) {
- critical ("Couldn't store credentials in the keyring : %s", e.message);
+ warning ("Couldn't store credentials in the keyring : %s", e.message);
throw new MinerWebError.KEYRING (e.message);
}
}
@@ -178,7 +178,7 @@ public class FacebookMiner : Tracker.Miner, Tracker.MinerWeb {
miner_status = MinerWeb.AssociationStatus.UNASSOCIATED;
throw new MinerWebError.NO_CREDENTIALS (_("Association needed"));
} else {
- critical ("Couldn't access the keyring : %s", e.message);
+ warning ("Couldn't access the keyring : %s", e.message);
throw new MinerWebError.KEYRING (e.message);
}
}
@@ -194,7 +194,7 @@ public class FacebookMiner : Tracker.Miner, Tracker.MinerWeb {
if (node.name != "users_getLoggedInUser_response") {
#if DEBUG
- critical ("Couldn't get user info\nGot answer %s\n", c.get_payload ());
+ warning ("Couldn't get user info\nGot answer %s\n", c.get_payload ());
#endif
if (node.find ("error_code").content == "102") { // Session key invalid or no longer valid
session = null;
@@ -270,7 +270,7 @@ public class FacebookMiner : Tracker.Miner, Tracker.MinerWeb {
{
message ("Pulling pictures");
if (err != null) {
- critical ("Error while pulling pictures : %s", err.message);
+ warning ("Error while pulling pictures : %s", err.message);
//error (new MinerWebError.SERVICE (err.message));
}
@@ -286,7 +286,7 @@ public class FacebookMiner : Tracker.Miner, Tracker.MinerWeb {
XmlNode current = root.find ("fql_result");
if (current == null) {
- critical ("Error in request : \n%s", call.get_payload ());
+ warning ("Error in request : \n%s", call.get_payload ());
//error (new MinerWebError.SERVICE (_(REST_ERRORMSG), root.find ("error_msg").content));
return;
}
@@ -354,7 +354,7 @@ public class FacebookMiner : Tracker.Miner, Tracker.MinerWeb {
friend_urn.lookup (current_album.find ("owner").content)));
tracker.BatchCommit ();
} catch (Error e) {
- critical ("Error while contacting Trakcer : %s", e.message);
+ critical ("Error while contacting Tracker : %s", e.message);
//error (new MinerWebError.TRACKER (e.message));
return;
}
@@ -415,7 +415,7 @@ public class FacebookMiner : Tracker.Miner, Tracker.MinerWeb {
private void pull_stream_cb (ProxyCall call, GLib.Error? err, Object weak_object)
{
if (err != null) {
- critical ("Error while pulling pictures : %s", err.message);
+ warning ("Error while pulling pictures : %s", err.message);
//error (new MinerWebError.SERVICE (err.message));
return;
}
@@ -427,7 +427,7 @@ public class FacebookMiner : Tracker.Miner, Tracker.MinerWeb {
{
XmlNode result_1 = root.find ("fql_result");
if (result_1 == null) {
- critical ("Error in request : \n%s", call.get_payload ());
+ warning ("Error in request : \n%s", call.get_payload ());
//error (new MinerWebError.SERVICE (_(REST_ERRORMSG), root.find ("error_msg").content));
return;
}
@@ -517,7 +517,7 @@ public class FacebookMiner : Tracker.Miner, Tracker.MinerWeb {
try {
photos_node = runCall (c);
} catch (MinerWebError e) {
- critical ("REST call failed!");
+ warning ("REST call failed!");
return;
}
@@ -557,7 +557,7 @@ public class FacebookMiner : Tracker.Miner, Tracker.MinerWeb {
try {
c.run (null);
} catch (Error e) {
- critical ("Error in REST call : %s\n", e.message);
+ warning ("Error in REST call : %s\n", e.message);
//error (new MinerWebError.SERVICE (_(REST_ERRORMSG), e.message));
throw new MinerWebError.SERVICE (e.message);
}
@@ -575,7 +575,7 @@ public class FacebookMiner : Tracker.Miner, Tracker.MinerWeb {
try {
c.run_async (callback, this);
} catch (Error e) {
- critical ("Error in REST call : %s\n", e.message);
+ warning ("Error in REST call : %s\n", e.message);
//error (new MinerWebError.SERVICE (_(REST_ERRORMSG), e.message));
throw new MinerWebError.SERVICE (e.message);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]