Skip to content

Commit 9292e3f

Browse files
committed
add more logging
1 parent ba4902d commit 9292e3f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Sources/Sentry/Profiling/SentryProfilerSerialization.mm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@
337337
# if defined(SENTRY_TEST) || defined(SENTRY_TEST_CI)
338338
// only write profile payloads to disk for UI tests
339339
if (NSProcessInfo.processInfo.environment[@"--io.sentry.ui-test.test-name"] != nil) {
340+
SENTRY_LOG_DEBUG(
341+
@"Writing profile to test file (profile ID %@, chunk ID %@", profileID, chunkID);
340342
sentry_writeProfileFile(JSONData, true /*continuous*/);
341343
}
342344
# endif // defined(SENTRY_TEST) || defined(SENTRY_TEST_CI)

Sources/Sentry/Profiling/SentryProfilerTestHelpers.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
SENTRY_LOG_DEBUG(@"Writing profile to file: %@.", pathToWrite);
6666

6767
SENTRY_CASSERT([JSONData writeToFile:pathToWrite options:NSDataWritingAtomic error:&error],
68-
@"Failed to write data to path %@: %@", pathToWrite, error);
68+
@"Failed to write profile data to path %@: %@", pathToWrite, error);
6969
}
7070

7171
# endif // defined(SENTRY_TEST) || defined(SENTRY_TEST_CI) || defined(DEBUG)

0 commit comments

Comments
 (0)