Improved logging of exceptions.
This commit is contained in:
parent
47a3db7767
commit
f602e4586c
@ -526,7 +526,8 @@ public class AppDetails extends ListActivity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.d("FDroid", "Download failed - " + e.getMessage());
|
Log.e("FDroid", "Download failed:\n"
|
||||||
|
+ Log.getStackTraceString(e));
|
||||||
Message msg = new Message();
|
Message msg = new Message();
|
||||||
msg.obj = e.getMessage();
|
msg.obj = e.getMessage();
|
||||||
download_error_handler.sendMessage(msg);
|
download_error_handler.sendMessage(msg);
|
||||||
|
@ -281,7 +281,8 @@ public class DB {
|
|||||||
// Also try and delete the old one, from versions 0.13 and earlier.
|
// Also try and delete the old one, from versions 0.13 and earlier.
|
||||||
ctx.deleteDatabase("fdroid_db");
|
ctx.deleteDatabase("fdroid_db");
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
Log.d("FDroid", "Exception in DB.delete: " + ex.getMessage());
|
Log.e("FDroid", "Exception in DB.delete:\n"
|
||||||
|
+ Log.getStackTraceString(ex));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -401,8 +402,8 @@ public class DB {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.d("FDroid", "Exception during database reading - "
|
Log.e("FDroid", "Exception during database reading:\n"
|
||||||
+ e.getMessage() + " ... " + e.toString());
|
+ Log.getStackTraceString(e));
|
||||||
} finally {
|
} finally {
|
||||||
if (c != null) {
|
if (c != null) {
|
||||||
c.close();
|
c.close();
|
||||||
|
@ -321,8 +321,8 @@ public class RepoXMLHandler extends DefaultHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.d("FDroid", "Exception updating from " + repo.address
|
Log.e("FDroid", "Exception updating from " + repo.address
|
||||||
+ " - " + e.toString());
|
+ ":\n" + Log.getStackTraceString(e));
|
||||||
return false;
|
return false;
|
||||||
} finally {
|
} finally {
|
||||||
ctx.deleteFile("tempindex.xml");
|
ctx.deleteFile("tempindex.xml");
|
||||||
|
@ -135,8 +135,8 @@ public class UpdateService extends Service {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.d("FDroid", "Exception during handleCommand() - "
|
Log.e("FDroid", "Exception during handleCommand():\n"
|
||||||
+ e.getMessage());
|
+ Log.getStackTraceString(e));
|
||||||
} finally {
|
} finally {
|
||||||
if (db != null)
|
if (db != null)
|
||||||
db.close();
|
db.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user