summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Kim <justin.kim@collabora.com>2016-05-26 12:01:58 +0900
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>2016-07-01 16:35:45 +0100
commit91c85609d2cf449d3e985f69efaffd3d2395914a (patch)
tree234392137bb62980d692992d21cdfd50e10828ad
parent2098cd634177d56762965947343a805caf8fd61d (diff)
downloadgeoclue-91c85609d2cf449d3e985f69efaffd3d2395914a.tar.gz
service-client: Add a debug log
Add a debug log when the distance from previous location is below distance_threshold. https://bugs.freedesktop.org/show_bug.cgi?id=94460
-rw-r--r--src/gclue-service-client.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gclue-service-client.c b/src/gclue-service-client.c
index bbf2393..6043776 100644
--- a/src/gclue-service-client.c
+++ b/src/gclue-service-client.c
@@ -132,8 +132,12 @@ distance_below_threshold (GClueServiceClient *client,
g_object_unref (cur_location);
threshold_km = priv->distance_threshold / 1000.0;
- if (distance < threshold_km)
+ if (distance < threshold_km) {
+ g_debug ("Distance from previous location is %f km and "
+ "below threshold of %f km.",
+ distance, threshold_km);
return TRUE;
+ }
return FALSE;
}