Skip to content

Commit 66cc865

Browse files
committed
Add throw in debug mode
1 parent 64a5ed7 commit 66cc865

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MSAL/src/configuration/MSALLoggerConfig.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ - (void)setLogCallback:(MSALLogCallback)callback
5454
{
5555
if (self.callback != nil)
5656
{
57+
#if DEBUG
58+
@throw @"MSAL logging callback can only be set once per process and should never changed once set.";
59+
#endif
5760
MSID_LOG_WITH_CTX(MSIDLogLevelError, nil, @"MSAL logging callback can only be set once per process and should never changed once set.");
5861
return;
5962
}

0 commit comments

Comments
 (0)