1 diff --git a/src/Runner.Common/HostContext.cs b/src/Runner.Common/HostContext.cs
2 index 9e43464..a953694 100644
3 --- a/src/Runner.Common/HostContext.cs
4 +++ b/src/Runner.Common/HostContext.cs
5 @@ -119,7 +119,7 @@ namespace GitHub.Runner.Common
8 // this should give us _diag folder under runner root directory
9 - string diagLogDirectory = Path.Combine(new DirectoryInfo(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)).Parent.FullName, Constants.Path.DiagDirectory);
10 + string diagLogDirectory = GetDirectory(WellKnownDirectory.Diag);
11 _traceManager = new TraceManager(new HostTraceListener(diagLogDirectory, hostType, logPageSize, logRetentionDays), stdoutTraceListener, this.SecretMasker);
14 @@ -297,7 +297,10 @@ namespace GitHub.Runner.Common
15 throw new NotSupportedException($"Unexpected well known directory: '{directory}'");
18 - _trace.Info($"Well known directory '{directory}': '{path}'");
21 + _trace.Info($"Well known directory '{directory}': '{path}'");