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
|
Top = 16
|
||||||
end
|
end
|
||||||
object BINMessage: TROBinMessage
|
object BINMessage: TROBinMessage
|
||||||
|
OnWriteException = BINMessageWriteException
|
||||||
Left = 136
|
Left = 136
|
||||||
Top = 16
|
Top = 16
|
||||||
end
|
end
|
||||||
|
|||||||
@ -33,6 +33,8 @@ type
|
|||||||
IsExpired: Boolean);
|
IsExpired: Boolean);
|
||||||
procedure ConnectionManagerConnectionAcquired(Sender: TDAConnectionManager;
|
procedure ConnectionManagerConnectionAcquired(Sender: TDAConnectionManager;
|
||||||
const Connection: IDAConnection);
|
const Connection: IDAConnection);
|
||||||
|
procedure BINMessageWriteException(Sender: TROMessage; aStream: TStream;
|
||||||
|
E: Exception);
|
||||||
private
|
private
|
||||||
FEscribirLog : TCriticalSection;
|
FEscribirLog : TCriticalSection;
|
||||||
FConnectionName : string;
|
FConnectionName : string;
|
||||||
@ -144,6 +146,12 @@ begin
|
|||||||
Result := Result + chr(ord(Source[i]) - Random(10) - 1);
|
Result := Result + chr(ord(Source[i]) - Random(10) - 1);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TdmServer.BINMessageWriteException(Sender: TROMessage;
|
||||||
|
aStream: TStream; E: Exception);
|
||||||
|
begin
|
||||||
|
EscribirLog(E.Message);
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TdmServer.ConnectionManagerConnectionAcquired(
|
procedure TdmServer.ConnectionManagerConnectionAcquired(
|
||||||
Sender: TDAConnectionManager; const Connection: IDAConnection);
|
Sender: TDAConnectionManager; const Connection: IDAConnection);
|
||||||
begin
|
begin
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user