Skip to content

Commit d8fc936

Browse files
authored
Log PID for debugging (#1160)
1 parent 6041b33 commit d8fc936

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PowerShellEditorServices.Hosting/EditorServicesLoader.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,10 @@ private void LogHostInformation()
276276
{
277277
_logger.Log(PsesLogLevel.Diagnostic, "Logging host information");
278278

279+
_logger.Log(PsesLogLevel.Diagnostic, $@"
280+
PID: {System.Diagnostics.Process.GetCurrentProcess().Id}
281+
");
282+
279283
_logger.Log(PsesLogLevel.Verbose, $@"
280284
== Build Details ==
281285
- Editor Services version: {BuildInfo.BuildVersion}

0 commit comments

Comments
 (0)