Skip to content

Commit b158602

Browse files
committed
Matching warning log messages with other platforms
1 parent 1e74cbe commit b158602

File tree

1 file changed

+2
-2
lines changed
  • sdk/mobile-center-analytics/src/main/java/com/microsoft/azure/mobile/analytics

1 file changed

+2
-2
lines changed

sdk/mobile-center-analytics/src/main/java/com/microsoft/azure/mobile/analytics/Analytics.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,12 @@ private static Map<String, String> validateProperties(Map<String, String> proper
317317
continue;
318318
}
319319
if (key.length() > MAX_PROPERTY_ITEM_LENGTH) {
320-
message = String.format("%s '%s' : property '%s' : property key length cannot be longer than %s characters. Property key '%s' will be truncated.", logType, logName, key, MAX_PROPERTY_ITEM_LENGTH, key);
320+
message = String.format("%s '%s' : property '%s' : property key length cannot be longer than %s characters. Property key will be truncated.", logType, logName, key, MAX_PROPERTY_ITEM_LENGTH);
321321
MobileCenterLog.warn(Analytics.LOG_TAG, message);
322322
key = key.substring(0, MAX_PROPERTY_ITEM_LENGTH);
323323
}
324324
if (value.length() > MAX_PROPERTY_ITEM_LENGTH) {
325-
message = String.format("%s '%s' : property '%s' : property value cannot be longer than %s characters. Property '%s' will be truncated.", logType, logName, key, MAX_PROPERTY_ITEM_LENGTH, value);
325+
message = String.format("%s '%s' : property '%s' : property value cannot be longer than %s characters. Property value will be truncated.", logType, logName, key, MAX_PROPERTY_ITEM_LENGTH);
326326
MobileCenterLog.warn(Analytics.LOG_TAG, message);
327327
value = value.substring(0, MAX_PROPERTY_ITEM_LENGTH);
328328
}

0 commit comments

Comments
 (0)