aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/utils
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2013-01-12 20:45:25 +0100
committerBananeweizen <bananeweizen@gmx.de>2013-01-12 20:45:25 +0100
commit884a60814d1a72ca30e9e9b0e31d59e895b2aca0 (patch)
tree2f6255ebc8d519b45649b2d874c8cb72b5d7809b /main/src/cgeo/geocaching/utils
parentd554491cd880eee557742b532b56407f2083d8e5 (diff)
downloadcgeo-884a60814d1a72ca30e9e9b0e31d59e895b2aca0.zip
cgeo-884a60814d1a72ca30e9e9b0e31d59e895b2aca0.tar.gz
cgeo-884a60814d1a72ca30e9e9b0e31d59e895b2aca0.tar.bz2
refactoring: use exception object in loggging
Diffstat (limited to 'main/src/cgeo/geocaching/utils')
-rw-r--r--main/src/cgeo/geocaching/utils/CryptUtils.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/utils/CryptUtils.java b/main/src/cgeo/geocaching/utils/CryptUtils.java
index 7a23156..df2baa0 100644
--- a/main/src/cgeo/geocaching/utils/CryptUtils.java
+++ b/main/src/cgeo/geocaching/utils/CryptUtils.java
@@ -71,7 +71,7 @@ public final class CryptUtils {
digest.update(text.getBytes(), 0, text.length());
hashed = new BigInteger(1, digest.digest()).toString(16);
} catch (Exception e) {
- Log.e("cgBase.md5: " + e.toString());
+ Log.e("cgBase.md5", e);
}
return hashed;
@@ -85,7 +85,7 @@ public final class CryptUtils {
digest.update(text.getBytes(), 0, text.length());
hashed = new BigInteger(1, digest.digest()).toString(16);
} catch (Exception e) {
- Log.e("cgBase.sha1: " + e.toString());
+ Log.e("cgBase.sha1", e);
}
return hashed;
@@ -100,7 +100,7 @@ public final class CryptUtils {
mac.init(secretKeySpec);
macBytes = mac.doFinal(text.getBytes());
} catch (Exception e) {
- Log.e("cgBase.hashHmac: " + e.toString());
+ Log.e("cgBase.hashHmac", e);
}
return macBytes;