Skip to content

Commit

Permalink
Fixing log calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtursKadikis committed Mar 16, 2023
1 parent 5778eb2 commit 892191c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void record() {
invalid = true;
recorder.recordEvent(this);

L.e("[EventImpl] record: " + this.toString());
L.d("[EventImpl] record: " + this.toString());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public T call() throws Exception {
* @return storable object passed as param when reading succeeded, null otherwise
*/
public static <T extends Storable> T readOne(CtxCore ctx, T storable, boolean asc, Log L) {
ctx.getLogger().e("[Storage] readOne: " + name(storable) + " " + storable.toString());
ctx.getLogger().d("[Storage] readOne: " + name(storable) + " " + storable.toString());

try {
return readOneAsync(ctx, storable, asc, L).get();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ public void stop(boolean lastView) {

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

long viewDurationSeconds = (Device.dev.uniqueTimestamp() - start.getTimestamp()) / 1000;
long startTs = Device.dev.uniqueTimestamp();
long endTs = start.getTimestamp();

long viewDurationSeconds = (startTs - endTs) / 1000;

event.setDuration(viewDurationSeconds);

Expand Down

0 comments on commit 892191c

Please sign in to comment.