diff --git a/app/src/org/commcare/activities/CommCareGraphActivity.java b/app/src/org/commcare/activities/CommCareGraphActivity.java index 1d82f689a2..156f6cbd17 100755 --- a/app/src/org/commcare/activities/CommCareGraphActivity.java +++ b/app/src/org/commcare/activities/CommCareGraphActivity.java @@ -31,9 +31,5 @@ protected void onCreate(Bundle savedInstanceState) { protected void onDestroy() { super.onDestroy(); FirebaseAnalyticsUtil.reportGraphViewFullScreenClosed(); - - String title = getTitle() == null || getTitle().length() == 0 ? "(no title)" : getTitle().toString(); - Logger.log(LogTypes.TYPE_GRAPHING, - String.format("End viewing full screen graph for %s", title)); } } diff --git a/app/src/org/commcare/android/javarosa/IntentCallout.java b/app/src/org/commcare/android/javarosa/IntentCallout.java index 8225217316..94c243f7f7 100644 --- a/app/src/org/commcare/android/javarosa/IntentCallout.java +++ b/app/src/org/commcare/android/javarosa/IntentCallout.java @@ -165,7 +165,6 @@ public Intent generate(EvaluationContext ec) { } } } - Logger.log(LogTypes.TYPE_FORM_ENTRY, "Generated intent for callout: " + i.toString()); return i; } diff --git a/app/src/org/commcare/appupdate/CommcareFlexibleAppUpdateManager.java b/app/src/org/commcare/appupdate/CommcareFlexibleAppUpdateManager.java index fcf04c0680..137e0e0b25 100644 --- a/app/src/org/commcare/appupdate/CommcareFlexibleAppUpdateManager.java +++ b/app/src/org/commcare/appupdate/CommcareFlexibleAppUpdateManager.java @@ -161,8 +161,6 @@ private void publishStatus() { if (mAppUpdateState == newState) { return; } - Logger.log(LogTypes.TYPE_CC_UPDATE, "Publishing status update to : " + newState.name() + ", from : " - + (mAppUpdateState != null ? mAppUpdateState.name() : "null")); mAppUpdateState = newState; mCallback.run(); } diff --git a/app/src/org/commcare/graph/view/GraphView.java b/app/src/org/commcare/graph/view/GraphView.java index 97e75081b5..76c443b24d 100755 --- a/app/src/org/commcare/graph/view/GraphView.java +++ b/app/src/org/commcare/graph/view/GraphView.java @@ -83,20 +83,12 @@ public GraphWebView(Context context) { protected void onAttachedToWindow() { super.onAttachedToWindow(); FirebaseAnalyticsUtil.reportGraphViewAttached(); - - String displayTitle = mTitle == null || "".equals(mTitle) ? "(no title)" : mTitle; - Logger.log(LogTypes.TYPE_GRAPHING, - String.format("Start viewing graph in list for %s", displayTitle)); } @Override protected void onDetachedFromWindow() { super.onDetachedFromWindow(); FirebaseAnalyticsUtil.reportGraphViewDetached(); - - String displayTitle = mTitle == null || "".equals(mTitle) ? "(no title)" : mTitle; - Logger.log(LogTypes.TYPE_GRAPHING, - String.format("End viewing graph in list for %s", displayTitle)); } } diff --git a/app/src/org/commcare/preferences/HiddenPreferences.java b/app/src/org/commcare/preferences/HiddenPreferences.java index f435f5831e..cda1288e50 100644 --- a/app/src/org/commcare/preferences/HiddenPreferences.java +++ b/app/src/org/commcare/preferences/HiddenPreferences.java @@ -310,7 +310,6 @@ public static int getIdOfInterruptedSSD() { } public static void clearInterruptedSSD() { - Logger.log(LogTypes.TYPE_MAINTENANCE, "Clearing interrupted state"); String currentUserId = CommCareApplication.instance().getCurrentUserId(); CommCareApplication.instance().getCurrentApp().getAppPreferences().edit() .putInt(ID_OF_INTERRUPTED_SSD + currentUserId, -1).apply(); diff --git a/app/src/org/commcare/tasks/DataPullTask.java b/app/src/org/commcare/tasks/DataPullTask.java index 7f5242b644..e0eb215089 100644 --- a/app/src/org/commcare/tasks/DataPullTask.java +++ b/app/src/org/commcare/tasks/DataPullTask.java @@ -152,7 +152,6 @@ private ResultAndError doTaskBackgroundHelper() { publishProgress(PROGRESS_STARTED); HiddenPreferences.setPostUpdateSyncNeeded(false); - Logger.log(LogTypes.TYPE_USER, "Starting Sync"); determineIfLoginNeeded(); AndroidTransactionParserFactory factory = getTransactionParserFactory(); diff --git a/app/src/org/commcare/tasks/LogSubmissionTask.java b/app/src/org/commcare/tasks/LogSubmissionTask.java index 40fa132caa..64ac182c6a 100644 --- a/app/src/org/commcare/tasks/LogSubmissionTask.java +++ b/app/src/org/commcare/tasks/LogSubmissionTask.java @@ -355,7 +355,6 @@ private LogSubmitOutcomes checkSubmissionResult(int numberOfLogsToSubmit, if (submittedSuccesfully.size() == numberOfLogsToSubmit) { return LogSubmitOutcomes.SUBMITTED; } else { - Logger.log(LogTypes.TYPE_MAINTENANCE, numberOfLogsToSubmit - submittedSuccesfully.size() + " logs remain on phone."); //Some remain unsent return LogSubmitOutcomes.SERIALIZED; } diff --git a/app/src/org/commcare/utils/FormUploadUtil.java b/app/src/org/commcare/utils/FormUploadUtil.java index e358b81b94..f0d97ab02d 100644 --- a/app/src/org/commcare/utils/FormUploadUtil.java +++ b/app/src/org/commcare/utils/FormUploadUtil.java @@ -361,10 +361,14 @@ private static boolean buildMultipartEntity(List parts, } } } - Logger.log(LogTypes.TYPE_FORM_SUBMISSION, "Attempted to add " - + numAttachmentsInInstanceFolder + " attachments to submission entity"); - Logger.log(LogTypes.TYPE_FORM_SUBMISSION, "Successfully added " - + numAttachmentsSuccessfullyAdded + " attachments to submission entity"); + if (numAttachmentsInInstanceFolder > 0) { + Logger.log(LogTypes.TYPE_FORM_SUBMISSION, "Attempted to add " + + numAttachmentsInInstanceFolder + " attachments to submission entity"); + } + if (numAttachmentsSuccessfullyAdded > 0) { + Logger.log(LogTypes.TYPE_FORM_SUBMISSION, "Successfully added " + + numAttachmentsSuccessfullyAdded + " attachments to submission entity"); + } return true; }