From 3b1b732d8f6eae383f47e4fbdebbbb7707289e6f Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 19 Feb 2017 20:56:12 +0100 Subject: [PATCH] nclient log collection --- .../NSClientInternal/services/NSClientService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/services/NSClientService.java b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/services/NSClientService.java index 3b7f57c7d4..854933f4f0 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/services/NSClientService.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/services/NSClientService.java @@ -509,7 +509,7 @@ public class NSClientService extends Service { message.put("_id", dbr._id); message.put("data", dbr.data); mSocket.emit("dbUpdate", message, ack); - MainApp.bus().post(new EventNSClientNewLog("DBUPDATE", "Sent " + dbr._id)); + MainApp.bus().post(new EventNSClientNewLog("DBUPDATE " + dbr.collection, "Sent " + dbr._id)); } catch (JSONException e) { e.printStackTrace(); } @@ -523,7 +523,7 @@ public class NSClientService extends Service { message.put("_id", dbr._id); message.put("data", dbr.data); mSocket.emit("dbUpdateUnset", message, ack); - MainApp.bus().post(new EventNSClientNewLog("DBUPDATEUNSET", "Sent " + dbr._id)); + MainApp.bus().post(new EventNSClientNewLog("DBUPDATEUNSET " + dbr.collection, "Sent " + dbr._id)); } catch (JSONException e) { e.printStackTrace(); } @@ -536,7 +536,7 @@ public class NSClientService extends Service { message.put("collection", dbr.collection); message.put("_id", dbr._id); mSocket.emit("dbRemove", message, ack); - MainApp.bus().post(new EventNSClientNewLog("DBREMOVE", "Sent " + dbr._id)); + MainApp.bus().post(new EventNSClientNewLog("DBREMOVE " + dbr.collection, "Sent " + dbr._id)); } catch (JSONException e) { e.printStackTrace(); } @@ -559,7 +559,7 @@ public class NSClientService extends Service { message.put("collection", dbr.collection); message.put("data", dbr.data); mSocket.emit("dbAdd", message, ack); - MainApp.bus().post(new EventNSClientNewLog("DBADD", "Sent " + dbr.nsClientID)); + MainApp.bus().post(new EventNSClientNewLog("DBADD " + dbr.collection, "Sent " + dbr.nsClientID)); } catch (JSONException e) { e.printStackTrace(); }