Commit c346d279 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added error message that includes username when logging exceptions.

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3062 b35dd754-fafc-0310-a699-88a17e54d16e
parent ce67b3e1
/** /**
* $RCSfile$ * $RCSfile: DefaultVCardProvider.java,v $
* $Revision$ * $Revision$
* $Date$ * $Date$
* *
...@@ -76,7 +76,7 @@ public class DefaultVCardProvider implements VCardProvider { ...@@ -76,7 +76,7 @@ public class DefaultVCardProvider implements VCardProvider {
} }
} }
catch (Exception e) { catch (Exception e) {
Log.error(e); Log.error("Error loading vCard of username: " + username, e);
} }
finally { finally {
// Return the sax reader to the pool // Return the sax reader to the pool
...@@ -108,7 +108,7 @@ public class DefaultVCardProvider implements VCardProvider { ...@@ -108,7 +108,7 @@ public class DefaultVCardProvider implements VCardProvider {
pstmt.executeUpdate(); pstmt.executeUpdate();
} }
catch (SQLException e) { catch (SQLException e) {
Log.error(e); Log.error("Error creating vCard for username: " + username, e);
} }
finally { finally {
try { if (pstmt != null) { pstmt.close(); } } try { if (pstmt != null) { pstmt.close(); } }
...@@ -133,7 +133,7 @@ public class DefaultVCardProvider implements VCardProvider { ...@@ -133,7 +133,7 @@ public class DefaultVCardProvider implements VCardProvider {
pstmt.executeUpdate(); pstmt.executeUpdate();
} }
catch (SQLException e) { catch (SQLException e) {
Log.error(e); Log.error("Error updating vCard of username: " + username, e);
} }
finally { finally {
try { if (pstmt != null) { pstmt.close(); } } try { if (pstmt != null) { pstmt.close(); } }
...@@ -153,7 +153,7 @@ public class DefaultVCardProvider implements VCardProvider { ...@@ -153,7 +153,7 @@ public class DefaultVCardProvider implements VCardProvider {
pstmt.executeUpdate(); pstmt.executeUpdate();
} }
catch (SQLException e) { catch (SQLException e) {
Log.error(e); Log.error("Error deleting vCard of username: " + username, e);
} }
finally { finally {
try { if (pstmt != null) { pstmt.close(); } } try { if (pstmt != null) { pstmt.close(); } }
......
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