Skip to content

Commit 64a5ed7

Browse files
committed
Removed throw from setting MSAL logging callback
1 parent be848ee commit 64a5ed7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MSAL/src/configuration/MSALLoggerConfig.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ - (void)setLogCallback:(MSALLogCallback)callback
5454
{
5555
if (self.callback != nil)
5656
{
57-
@throw @"MSAL logging callback can only be set once per process and should never changed once set.";
57+
MSID_LOG_WITH_CTX(MSIDLogLevelError, nil, @"MSAL logging callback can only be set once per process and should never changed once set.");
58+
return;
5859
}
5960

6061
static dispatch_once_t once;

0 commit comments

Comments
 (0)