Skip to content

Commit

Permalink
Old Write* to LogI and LogException
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleteti committed Jul 9, 2024
1 parent c420be5 commit d515664
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions samples/swagger_primer/SwaggerPrimer.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ procedure RunServer(APort: Integer);
var
LServer: TIdHTTPWebBrokerBridge;
begin
Writeln('** DMVCFramework Server ** build ' + DMVCFRAMEWORK_VERSION);
LogI('** DMVCFramework Server ** build ' + DMVCFRAMEWORK_VERSION);

LServer := TIdHTTPWebBrokerBridge.Create(nil);
try
Expand All @@ -35,7 +35,7 @@ begin
LServer.MaxConnections := 0;
LServer.ListenQueue := 200;
LServer.Active := True;
Write('CTRL+C to Quit');
LogI('CTRL+C to Quit');
WaitForTerminationSignal;
finally
LServer.Free;
Expand All @@ -55,7 +55,7 @@ begin
RunServer(8080);
except
on E: Exception do
Writeln(E.ClassName, ': ', E.Message);
LogException(E, 'Shutdown');
end;

end.
8 changes: 4 additions & 4 deletions samples/swaggerdoc_extended/SwaggerDocApiExtended.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var
LCmd: string;
lURL: string;
begin
Writeln('** DMVCFramework Server ** build ' + DMVCFRAMEWORK_VERSION);
LogI('** DMVCFramework Server ** build ' + DMVCFRAMEWORK_VERSION);
LCmd := 'start';
if ParamCount >= 1 then
LCmd := ParamStr(1);
Expand All @@ -52,9 +52,9 @@ begin
http://ww2.indyproject.org/docsite/html/frames.html?frmname=topic&frmfile=index.html }
LServer.ListenQueue := 200;
lURL := Format('http://localhost:%d', [APort]);
Writeln('SWAGGER UI available at ', lURL);
LogI('SWAGGER UI available at ' + lURL);
LServer.Active := True;
Write('CTRL+C to Quit');
LogI('CTRL+C to Quit');
{$IF Defined(MSWINDOWS)}
ShellExecute(0, nil, PChar(lURL), nil, nil, SW_SHOWNOACTIVATE);
{$ENDIF}
Expand All @@ -74,7 +74,7 @@ begin
RunServer(8080);
except
on E: Exception do
Writeln(E.ClassName, ': ', E.Message);
LogException(E, E.Message);
end;

end.

0 comments on commit d515664

Please sign in to comment.