You are not logged in.
Pages: 1
Hi Arnaud
i found the following "bug" between DEBUG and RELEASE Version in mORMot2:
I get lot's of Exception (> 200) at this line of code:
mORMot.rest.client: 2460 (InternalLog('% % returned % (%) with message %', [method, url, Call.OutStatus, StatusMsg, fLastErrorMessage], sllError);)
only in RELEASE Mode - not in DEBUG Mode !
so it was a bit tricky to get the cause for the Exceptions.
The Source for the Exceptions is in mormot.core.log: AddStackTrace in LogTrailer (sllError is in fLevelStackTrace) around line 5416
your are ignoring the Exceptions but they are displayed in the LogFile - and on console Screen.
As WorkAround i added this piece of code to my "Log Initialisation Code"
{$if defined(RELEASE)}
TSynLog.Family.LevelStackTrace := TSynLog.Family.LevelStackTrace - [sllError];
{$endif}
There are other Log Levels in LevelStackTrace wich may rise the same Exceptions
May be you have an Idea what's the Problem.
in mORMot the Problem does not exists - but i saw that you did a big rework in TSynLog
Rad Studio 12.3 Athens
Offline
Pages: 1