Skip to content

Commit b53e58b

Browse files
committed
logs!
1 parent 4506c30 commit b53e58b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/BenchmarksApps/TLS/Kestrel/Program.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,25 @@
88

99
Console.WriteLine("Starting application...");
1010

11+
using var process = new Process()
12+
{
13+
StartInfo =
14+
{
15+
FileName = "/usr/bin/env",
16+
Arguments = "openssl version",
17+
RedirectStandardOutput = true,
18+
RedirectStandardError = true,
19+
UseShellExecute = false,
20+
CreateNoWindow = true,
21+
},
22+
EnableRaisingEvents = true,
23+
};
24+
25+
process.Start();
26+
process.WaitForExit();
27+
string output = process.StandardOutput.ReadToEnd();
28+
Console.WriteLine("In app openssl version: \n" + output + "\n\n");
29+
1130
var builder = WebApplication.CreateBuilder(args);
1231
builder.Logging.ClearProviders();
1332

0 commit comments

Comments
 (0)