Skip to content

Commit

Permalink
Wizard generates support for Profiler configured from .env
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleteti committed Oct 4, 2023
1 parent a92deeb commit ff66bdd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ideexpert/DMVC.Expert.CodeGen.Templates.pas
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ interface
' end);' + sLineBreak +
'' + sLineBreak +
' WebRequestHandlerProc.MaxConnections := dotEnv.Env(''dmvc.handler.max_connections'', 1024);' + sLineBreak +
'' + sLineBreak +
' if dotEnv.Env(''dmvc.profiler.enabled'', false) then' + sLineBreak +
' begin' + sLineBreak +
' Profiler.ProfileLogger := Log;' + sLineBreak +
' Profiler.WarningThreshold := dotEnv.Env(''dmvc.profiler.warning_threshold'', 2000);' + sLineBreak +
' end;' + sLineBreak +
'' + sLineBreak +
' RunServer(dotEnv.Env(''dmvc.server.port'', %1:d));' + sLineBreak +
' except' + sLineBreak +
' on E: Exception do' + sLineBreak +
Expand Down

0 comments on commit ff66bdd

Please sign in to comment.