Skip to content

Commit 892191c

Browse files
committed
Fixing log calls
1 parent 5778eb2 commit 892191c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

sdk-java/src/main/java/ly/count/sdk/java/internal/EventImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void record() {
6969
invalid = true;
7070
recorder.recordEvent(this);
7171

72-
L.e("[EventImpl] record: " + this.toString());
72+
L.d("[EventImpl] record: " + this.toString());
7373
}
7474
}
7575

sdk-java/src/main/java/ly/count/sdk/java/internal/Storage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public T call() throws Exception {
248248
* @return storable object passed as param when reading succeeded, null otherwise
249249
*/
250250
public static <T extends Storable> T readOne(CtxCore ctx, T storable, boolean asc, Log L) {
251-
ctx.getLogger().e("[Storage] readOne: " + name(storable) + " " + storable.toString());
251+
ctx.getLogger().d("[Storage] readOne: " + name(storable) + " " + storable.toString());
252252

253253
try {
254254
return readOneAsync(ctx, storable, asc, L).get();

sdk-java/src/main/java/ly/count/sdk/java/internal/ViewImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ public void stop(boolean lastView) {
7979

8080
EventImpl event = (EventImpl) session.event(EVENT).addSegments(NAME, this.name, SEGMENT, SEGMENT_VALUE);
8181

82-
long viewDurationSeconds = (Device.dev.uniqueTimestamp() - start.getTimestamp()) / 1000;
82+
long startTs = Device.dev.uniqueTimestamp();
83+
long endTs = start.getTimestamp();
84+
85+
long viewDurationSeconds = (startTs - endTs) / 1000;
8386

8487
event.setDuration(viewDurationSeconds);
8588

0 commit comments

Comments
 (0)