aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/files
diff options
context:
space:
mode:
authorcampbeb <bpcampbell@gmail.com>2013-06-05 17:04:56 -1000
committercampbeb <bpcampbell@gmail.com>2013-06-05 17:24:11 -1000
commitb610ce7289c4cfe9d8a040d9cc4aadee2838700d (patch)
tree8a9a8e09c430ae96fe70b4ca3b0c5f437faa9171 /main/src/cgeo/geocaching/files
parente657d819d23f2e2749be4499ba2d5e9862c4a6b0 (diff)
downloadcgeo-b610ce7289c4cfe9d8a040d9cc4aadee2838700d.zip
cgeo-b610ce7289c4cfe9d8a040d9cc4aadee2838700d.tar.gz
cgeo-b610ce7289c4cfe9d8a040d9cc4aadee2838700d.tar.bz2
Correct log messages to account for refactoring
Diffstat (limited to 'main/src/cgeo/geocaching/files')
-rw-r--r--main/src/cgeo/geocaching/files/GPXImporter.java4
-rw-r--r--main/src/cgeo/geocaching/files/LocParser.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/main/src/cgeo/geocaching/files/GPXImporter.java b/main/src/cgeo/geocaching/files/GPXImporter.java
index 87c0ec4..e146fca 100644
--- a/main/src/cgeo/geocaching/files/GPXImporter.java
+++ b/main/src/cgeo/geocaching/files/GPXImporter.java
@@ -154,10 +154,10 @@ public class GPXImporter {
importStepHandler.sendMessage(importStepHandler.obtainMessage(IMPORT_STEP_FINISHED, search.getCount(), 0, search));
} catch (IOException e) {
- Log.i("Importing caches failed - error reading data: " + e.getMessage());
+ Log.i("Importing caches failed - error reading data: ", e);
importStepHandler.sendMessage(importStepHandler.obtainMessage(IMPORT_STEP_FINISHED_WITH_ERROR, R.string.gpx_import_error_io, 0, e.getLocalizedMessage()));
} catch (ParserException e) {
- Log.i("Importing caches failed - data format error" + e.getMessage());
+ Log.i("Importing caches failed - data format error", e);
importStepHandler.sendMessage(importStepHandler.obtainMessage(IMPORT_STEP_FINISHED_WITH_ERROR, R.string.gpx_import_error_parser, 0, e.getLocalizedMessage()));
} catch (CancellationException e) {
Log.i("Importing caches canceled");
diff --git a/main/src/cgeo/geocaching/files/LocParser.java b/main/src/cgeo/geocaching/files/LocParser.java
index fe290c3..873bf1b 100644
--- a/main/src/cgeo/geocaching/files/LocParser.java
+++ b/main/src/cgeo/geocaching/files/LocParser.java
@@ -110,7 +110,7 @@ public final class LocParser extends FileParser {
try {
return new Geopoint(Double.valueOf(latitude), Double.valueOf(longitude));
} catch (NumberFormatException e) {
- Log.e("LOC format has changed");
+ Log.e("LOC format has changed", e);
}
// fall back to parser, just in case the format changes
return new Geopoint(latitude, longitude);