From fc9ec4eae3fd6c091629b9cc68282496a441f68d Mon Sep 17 00:00:00 2001 From: Mikhail Chatillon Date: Tue, 1 Nov 2022 17:18:18 +0100 Subject: [PATCH] Change log verbosity for the HTTP client (#1955) * Change the path * Update notice file location * Remove unused notice import * remove httpclientfactory logs --- .../modules/LoRaWanNetworkSrvModule/Dockerfile.amd64 | 1 + .../modules/LoRaWanNetworkSrvModule/Dockerfile.arm32v7 | 1 + .../modules/LoRaWanNetworkSrvModule/Dockerfile.arm64v8 | 4 ++-- .../modules/LoRaWanNetworkSrvModule/appsettings.json | 8 ++++++++ 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 LoRaEngine/modules/LoRaWanNetworkSrvModule/appsettings.json diff --git a/LoRaEngine/modules/LoRaWanNetworkSrvModule/Dockerfile.amd64 b/LoRaEngine/modules/LoRaWanNetworkSrvModule/Dockerfile.amd64 index 458c0b10ad..fbc7e0b4be 100644 --- a/LoRaEngine/modules/LoRaWanNetworkSrvModule/Dockerfile.amd64 +++ b/LoRaEngine/modules/LoRaWanNetworkSrvModule/Dockerfile.amd64 @@ -31,6 +31,7 @@ RUN dotnet publish "LoRaWanNetworkSrvModule.csproj" -c Release -o out --no-resto FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim WORKDIR /app COPY --from=build-env /build/LoRaEngine/modules/LoRaWanNetworkSrvModule/LoRaWanNetworkSrvModule/out/* ./ +COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/appsettings.json ./ COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/start.sh ./ COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/NOTICE.txt ./ COPY LICENSE ./ diff --git a/LoRaEngine/modules/LoRaWanNetworkSrvModule/Dockerfile.arm32v7 b/LoRaEngine/modules/LoRaWanNetworkSrvModule/Dockerfile.arm32v7 index 9d62fc6f31..7681740d0c 100644 --- a/LoRaEngine/modules/LoRaWanNetworkSrvModule/Dockerfile.arm32v7 +++ b/LoRaEngine/modules/LoRaWanNetworkSrvModule/Dockerfile.arm32v7 @@ -30,6 +30,7 @@ RUN dotnet publish "LoRaWanNetworkSrvModule.csproj" -c Release -o out --no-resto FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim-arm32v7 WORKDIR /app +COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/appsettings.json ./ COPY --from=build-env /build/LoRaEngine/modules/LoRaWanNetworkSrvModule/LoRaWanNetworkSrvModule/out/* ./ COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/start.sh ./ COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/NOTICE.txt ./ diff --git a/LoRaEngine/modules/LoRaWanNetworkSrvModule/Dockerfile.arm64v8 b/LoRaEngine/modules/LoRaWanNetworkSrvModule/Dockerfile.arm64v8 index e301f167d2..4cedeebc5e 100644 --- a/LoRaEngine/modules/LoRaWanNetworkSrvModule/Dockerfile.arm64v8 +++ b/LoRaEngine/modules/LoRaWanNetworkSrvModule/Dockerfile.arm64v8 @@ -32,8 +32,8 @@ FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim-arm64v8 WORKDIR /app COPY --from=build-env /build/LoRaEngine/modules/LoRaWanNetworkSrvModule/LoRaWanNetworkSrvModule/out/* ./ COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/start.sh ./ -COPY LICENSE ./ +COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/appsettings.json ./ COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/NOTICE.txt ./ - +COPY LICENSE ./ RUN chmod +x ./start.sh ENTRYPOINT ["./start.sh"] diff --git a/LoRaEngine/modules/LoRaWanNetworkSrvModule/appsettings.json b/LoRaEngine/modules/LoRaWanNetworkSrvModule/appsettings.json new file mode 100644 index 0000000000..da86497bf1 --- /dev/null +++ b/LoRaEngine/modules/LoRaWanNetworkSrvModule/appsettings.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "System.Net.Http.HttpClient": "Warning", + "Microsoft.Extensions.Http.DefaultHttpClientFactory": "Warning" + } + } +}