Cada vez que se produce una excepción en el servidor, se vuelca en el log automáticamente.
git-svn-id: https://192.168.0.254/svn/Proyectos.Acana_FactuGES2/trunk@292 f4e31baf-9722-1c47-927c-6f952f962d4b
This commit is contained in:
parent
68a25e0444
commit
cce262ecf3
@ -21,6 +21,7 @@ object dmServer: TdmServer
|
||||
Top = 16
|
||||
end
|
||||
object BINMessage: TROBinMessage
|
||||
OnWriteException = BINMessageWriteException
|
||||
Left = 136
|
||||
Top = 16
|
||||
end
|
||||
|
||||
@ -33,6 +33,8 @@ type
|
||||
IsExpired: Boolean);
|
||||
procedure ConnectionManagerConnectionAcquired(Sender: TDAConnectionManager;
|
||||
const Connection: IDAConnection);
|
||||
procedure BINMessageWriteException(Sender: TROMessage; aStream: TStream;
|
||||
E: Exception);
|
||||
private
|
||||
FEscribirLog : TCriticalSection;
|
||||
FConnectionName : string;
|
||||
@ -144,6 +146,12 @@ begin
|
||||
Result := Result + chr(ord(Source[i]) - Random(10) - 1);
|
||||
end;
|
||||
|
||||
procedure TdmServer.BINMessageWriteException(Sender: TROMessage;
|
||||
aStream: TStream; E: Exception);
|
||||
begin
|
||||
EscribirLog(E.Message);
|
||||
end;
|
||||
|
||||
procedure TdmServer.ConnectionManagerConnectionAcquired(
|
||||
Sender: TDAConnectionManager; const Connection: IDAConnection);
|
||||
begin
|
||||
|
||||
Loading…
Reference in New Issue
Block a user