|
@@ -188,14 +188,21 @@ function TDaemonController.ReportStatus: Boolean;
|
|
|
|
|
|
Var
|
|
Var
|
|
S : String;
|
|
S : String;
|
|
|
|
+ doLog : Boolean;
|
|
|
|
|
|
begin
|
|
begin
|
|
S:='';
|
|
S:='';
|
|
|
|
+ DoLog:=True;
|
|
If Assigned(FDaemon) then
|
|
If Assigned(FDaemon) then
|
|
With FDaemon do
|
|
With FDaemon do
|
|
|
|
+ begin
|
|
S:=Format(SDaemonStatus,[Definition.DisplayName,
|
|
S:=Format(SDaemonStatus,[Definition.DisplayName,
|
|
CurrentStatusNames[Status]]);
|
|
CurrentStatusNames[Status]]);
|
|
- Application.Log(etInfo,S);
|
|
|
|
|
|
+ if Assigned(Definition) then
|
|
|
|
+ doLog:=Definition.LogStatusReport;
|
|
|
|
+ end;
|
|
|
|
+ if DoLog then
|
|
|
|
+ Application.Log(etInfo,S);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ ---------------------------------------------------------------------
|
|
{ ---------------------------------------------------------------------
|