Skip to content

Commit 7b67fca

Browse files
committed
maybe log from app itself?
1 parent 04c736b commit 7b67fca

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/BenchmarksApps/TLS/Kestrel/Program.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System.Diagnostics;
12
using System.Net;
23
using System.Net.Security;
34
using System.Security.Cryptography.X509Certificates;
@@ -7,6 +8,18 @@
78

89
Console.WriteLine("Starting application...");
910

11+
ProcessStartInfo startInfo = new ProcessStartInfo()
12+
{
13+
FileName = "/bin/bash",
14+
Arguments = "openssl version",
15+
RedirectStandardOutput = true,
16+
RedirectStandardError = true,
17+
};
18+
Process process = new Process() { StartInfo = startInfo, };
19+
string output = process.StandardOutput.ReadToEnd();
20+
process.WaitForExit();
21+
Console.WriteLine(output);
22+
1023
var builder = WebApplication.CreateBuilder(args);
1124
builder.Logging.ClearProviders();
1225

0 commit comments

Comments
 (0)