Skip to content

Commit

Permalink
Fix some debug log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
guperrot committed Oct 30, 2018
1 parent 90e72bc commit 55e2d86
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ private synchronized void triggerIngestion(final @NonNull GroupState groupState)
}
int pendingLogCount = groupState.mPendingLogCount;
int maxFetch = Math.min(pendingLogCount, groupState.mMaxLogsPerBatch);
AppCenterLog.debug(LOG_TAG, "triggerIngestion(" + groupState + ") pendingLogCount=" + pendingLogCount);
AppCenterLog.debug(LOG_TAG, "triggerIngestion(" + groupState.mName + ") pendingLogCount=" + pendingLogCount);
cancelTimer(groupState);

/* Check if we have reached the maximum number of pending batches, log to LogCat and don't trigger another sending. */
Expand Down Expand Up @@ -714,11 +714,11 @@ public synchronized void enqueue(@NonNull Log log, @NonNull final String groupNa
@VisibleForTesting
synchronized void checkPendingLogs(@NonNull GroupState groupState) {
if (groupState.mPaused) {
AppCenterLog.debug(LOG_TAG, groupState + " is paused. Skip checking pending logs.");
AppCenterLog.debug(LOG_TAG, groupState.mName + " is paused. Skip checking pending logs.");
return;
}
long pendingLogCount = groupState.mPendingLogCount;
AppCenterLog.debug(LOG_TAG, "checkPendingLogs(" + groupState + ") pendingLogCount=" + pendingLogCount);
AppCenterLog.debug(LOG_TAG, "checkPendingLogs(" + groupState.mName + ") pendingLogCount=" + pendingLogCount);
if (pendingLogCount >= groupState.mMaxLogsPerBatch) {
triggerIngestion(groupState);
} else if (pendingLogCount > 0 && !groupState.mScheduled) {
Expand Down

0 comments on commit 55e2d86

Please sign in to comment.