From ff9596aef03fe3f50a3e3b0ad2ba9a198c90bea6 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Wed, 15 Apr 2020 19:08:11 -0400 Subject: [PATCH] Update log sink API. --- platform-darwin/Source/MPAppDelegate_Shared.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform-darwin/Source/MPAppDelegate_Shared.m b/platform-darwin/Source/MPAppDelegate_Shared.m index 0e645074..827dcba5 100644 --- a/platform-darwin/Source/MPAppDelegate_Shared.m +++ b/platform-darwin/Source/MPAppDelegate_Shared.m @@ -32,7 +32,7 @@ @end MPLogSink mpw_log_sink_pearl; -void mpw_log_sink_pearl(const MPLogEvent *record) { +bool mpw_log_sink_pearl(const MPLogEvent *record) { PearlLogLevel level = PearlLogLevelInfo; switch (record->level) { @@ -58,6 +58,7 @@ void mpw_log_sink_pearl(const MPLogEvent *record) { [[PearlLogger get] inFile:[@(record->file) lastPathComponent] atLine:record->line fromFunction:@(record->function) withLevel:level text:@(record->message)]; + return YES; } @implementation MPAppDelegate_Shared