File tree 5 files changed +10
-8
lines changed
5 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
paths :
2
- -'src' # this is the only path that needs to be scanned
2
+ - src
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 57
57
languages : csharp
58
58
config-file : ./.github/codeql/codeql-config.yml
59
59
60
- # build is not required for .NET projects
60
+ - name : Build .NET Agent Solution
61
+ run : |
62
+ dotnet build ${{ env.fullagent_solution_path }}
63
+ shell : powershell
61
64
62
65
- name : Perform CodeQL Analysis
63
66
uses : github/codeql-action/analyze@b56ba49b26e50535fa1e7f7db0f4f7b4bf65d80d # v3.28.10
Original file line number Diff line number Diff line change 13
13
</Target >
14
14
15
15
<ItemGroup >
16
- <PackageReference Include =" NewRelic.Agent.Internal.Profiler" Version =" 10.37.0.7 " />
16
+ <PackageReference Include =" NewRelic.Agent.Internal.Profiler" Version =" 10.37.0.19 " />
17
17
</ItemGroup >
18
18
19
19
</Project >
Original file line number Diff line number Diff line change @@ -222,15 +222,16 @@ namespace NewRelic { namespace Profiler {
222
222
configFailed = true ;
223
223
}
224
224
225
- // ...then we initialize the log
225
+ // ...then we initialize the log file
226
226
InitializeLogging ();
227
227
228
228
// If we failed to load the config file, try again. Not because we expect it
229
229
// to succeed, but because we want to log the error. We couldn't do that the
230
230
// first time because the logger hadn't been initialized yet
231
231
if (configFailed)
232
232
{
233
- configuration = InitializeConfigAndSetLogLevel ();
233
+ nrlog::StdLog.SetInitalized (); // Ensure the logger is marked as initialized
234
+ configuration = InitializeConfigAndSetLogLevel (); // this will throw an exception that we want to log
234
235
}
235
236
236
237
LogTrace (_productName);
@@ -277,7 +278,7 @@ namespace NewRelic { namespace Profiler {
277
278
return S_OK;
278
279
}
279
280
catch (...) {
280
- LogError (L" An exception was thrown while initializing the profiler." );
281
+ LogError (L" An exception was thrown while initializing the profiler. The profiler will be detached now. " );
281
282
return CORPROF_E_PROFILER_CANCEL_ACTIVATION;
282
283
}
283
284
}
You can’t perform that action at this time.
0 commit comments