Skip to content

Commit a150769

Browse files
authored
Log number of truncated custom keys (#7583)
1 parent e30f30b commit a150769

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Crashlytics/Crashlytics/Components/FIRCLSUserLogging.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ void FIRCLSUserLoggingCompactKVEntries(FIRCLSUserLoggingKVStorage *storage) {
198198
// but it's very uncommon to go down this path.
199199
NSArray *keys = [finalKVs allKeys];
200200

201-
FIRCLSSDKLogInfo("Truncating KV set, which is above max %d\n", maxCount);
201+
FIRCLSSDKLogInfo("Truncating %d keys from KV set, which is above max %d\n",
202+
(uint32_t)(finalKVs.count - maxCount), maxCount);
202203

203204
finalKVs =
204205
[finalKVs dictionaryWithValuesForKeys:[keys subarrayWithRange:NSMakeRange(0, maxCount)]];

0 commit comments

Comments
 (0)