-
Notifications
You must be signed in to change notification settings - Fork 490
Update default log level #1970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update default log level #1970
Conversation
I tried it locally and got the same experience as you but strange enough when I then use your version through the Aspire integrations I'm still get the |
I also tried in aspire but see the same output that I have in the PR description. What extra info messages are you seeing? |
I'm seeing this but maybe I have something installed in a bad way. I'm also have changes in my Aspire branch that could be causing problems.
|
Oh gotcha. I think I Am actually seeing this same behavior when running in aspire. Let me double check on this |
@normj should be fixed now. When i previously tested in aspire I was seeing INFO logs, but thought those were aspire logs (woops!). When i was testing standalone testtool v2, i actually installed the nuget package and ran from a current directory which had its own appsettings.json - it was using this by mistake and not actually reading the appsettings from the nuget package. In the latest revision I updated the code to get the appsettings.json from the folder where the dll is installed. I also had to individually configure the test tool and api gateway |
@@ -37,6 +39,17 @@ public static TestToolProcess Startup(RunCommandSettings settings, CancellationT | |||
{ | |||
var builder = WebApplication.CreateBuilder(); | |||
|
|||
builder.Services.AddSingleton(typeof(Assembly), typeof(ConfigurationSetup).Assembly); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Since this is a copy of the same code in ApiGatewayEmulatorProcess
can you put it in a utility method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i made a Utils.ConfigureWebApplicationBuilder(builder);
function. Didn't know what to call it so just called it ConfigureWebApplicationBuilder
unless you have better naming idea
"Name": "Amazon.Lambda.TestTool", | ||
"Type": "Patch", | ||
"ChangelogMessages": [ | ||
"Update default log level" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: could you be more descriptive here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Issue #, if available: DOTNET-7954
Description of changes:
Testing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.