diff --git a/apple/src/FFmpegKitConfig.m b/apple/src/FFmpegKitConfig.m index 6275018..a8286ee 100644 --- a/apple/src/FFmpegKitConfig.m +++ b/apple/src/FFmpegKitConfig.m @@ -1418,9 +1418,7 @@ void callbackBlockFunction() { activeLogLevel = av_log_get_level(); if ((activeLogLevel != LevelAVLogQuiet) && (LevelAVLogWarning <= activeLogLevel)) { - NSLog(@"Async callback block received error: %@n\n", - exception); - NSLog(@"%@", [exception callStackSymbols]); + NSLog(@"Async callback block received an error."); } } } @@ -2216,9 +2214,9 @@ + (void)ffmpegExecute:(FFmpegSession *)ffmpegSession { [ffmpegSession complete:[[ReturnCode alloc] init:returnCode]]; } @catch (NSException *exception) { [ffmpegSession fail:exception]; - NSLog(@"FFmpeg execute failed: %@.%@", - [FFmpegKitConfig argumentsToString:[ffmpegSession getArguments]], - [NSString stringWithFormat:@"%@", [exception callStackSymbols]]); + // Session arguments can contain signed media URLs. Never put them or + // exception details into the process log, including on failure. + NSLog(@"FFmpeg execute failed."); } } @@ -2231,9 +2229,7 @@ + (void)ffprobeExecute:(FFprobeSession *)ffprobeSession { [ffprobeSession complete:[[ReturnCode alloc] init:returnCode]]; } @catch (NSException *exception) { [ffprobeSession fail:exception]; - NSLog(@"FFprobe execute failed: %@.%@", - [FFmpegKitConfig argumentsToString:[ffprobeSession getArguments]], - [NSString stringWithFormat:@"%@", [exception callStackSymbols]]); + NSLog(@"FFprobe execute failed."); } } @@ -2270,11 +2266,7 @@ + (void)getMediaInformationExecute: } } @catch (NSException *exception) { [mediaInformationSession fail:exception]; - NSLog(@"Get media information execute failed: %@.%@", - [FFmpegKitConfig - argumentsToString:[mediaInformationSession getArguments]], - [NSString stringWithFormat:@"\n%@\n%@", [exception userInfo], - [exception callStackSymbols]]); + NSLog(@"Get media information execute failed."); } } diff --git a/apple/src/MediaInformationJsonParser.m b/apple/src/MediaInformationJsonParser.m index eefb51d..26759a6 100644 --- a/apple/src/MediaInformationJsonParser.m +++ b/apple/src/MediaInformationJsonParser.m @@ -28,9 +28,9 @@ + (MediaInformation *)from:(NSString *)ffprobeJsonOutput { @try { return [self fromWithError:ffprobeJsonOutput]; } @catch (NSException *exception) { - NSLog(@"MediaInformation parsing failed: %@.\n", - [NSString stringWithFormat:@"%@\n%@", [exception userInfo], - [exception callStackSymbols]]); + // JSON parser failures may include source metadata. Keep process logs + // independent of temporary media addresses and signed parameters. + NSLog(@"MediaInformation parsing failed."); return nil; } }