Skip to content

Commit c51b76e

Browse files
author
Arnaud Bouchez
committed
core: new SynLogNoExceptionIntercept global flag
1 parent d47d211 commit c51b76e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/core/mormot.core.log.pas

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,6 +1420,10 @@ function GetLastExceptionText: RawUtf8;
14201420
procedure GetLastExceptions(out result: TSynLogExceptionInfoDynArray;
14211421
Depth: integer = 0); overload;
14221422

1423+
var
1424+
/// a run-time alternative to the NOEXCEPTIONINTERCEPT global conditional
1425+
SynLogNoExceptionIntercept: boolean;
1426+
14231427
{$endif NOEXCEPTIONINTERCEPT}
14241428

14251429

@@ -3997,6 +4001,8 @@ procedure TSynLogFamily.SetLevel(aLevel: TSynLogLevels);
39974001
include(aLevel, sllEnter);
39984002
fLevel := aLevel;
39994003
{$ifndef NOEXCEPTIONINTERCEPT}
4004+
if SynLogNoExceptionIntercept then
4005+
exit;
40004006
// intercept exceptions, if necessary
40014007
fHandleExceptions := (sllExceptionOS in aLevel) or
40024008
(sllException in aLevel);

src/mormot.commit.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
'2.3.10850'
1+
'2.3.10851'

0 commit comments

Comments
 (0)