Change log verbosity for the HTTP client (#1955)

* Change the path

* Update notice file location

* Remove unused notice import

* remove httpclientfactory logs
This commit is contained in:
Mikhail Chatillon 2022-11-01 17:18:18 +01:00 коммит произвёл GitHub
Родитель 5d1984970d
Коммит 49f5c0412a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -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 FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim
WORKDIR /app WORKDIR /app
COPY --from=build-env /build/LoRaEngine/modules/LoRaWanNetworkSrvModule/LoRaWanNetworkSrvModule/out/* ./ 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/start.sh ./
COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/NOTICE.txt ./ COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/NOTICE.txt ./
COPY LICENSE ./ COPY LICENSE ./

Просмотреть файл

@ -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 FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim-arm32v7
WORKDIR /app WORKDIR /app
COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/appsettings.json ./
COPY --from=build-env /build/LoRaEngine/modules/LoRaWanNetworkSrvModule/LoRaWanNetworkSrvModule/out/* ./ COPY --from=build-env /build/LoRaEngine/modules/LoRaWanNetworkSrvModule/LoRaWanNetworkSrvModule/out/* ./
COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/start.sh ./ COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/start.sh ./
COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/NOTICE.txt ./ COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/NOTICE.txt ./

Просмотреть файл

@ -32,8 +32,8 @@ FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim-arm64v8
WORKDIR /app WORKDIR /app
COPY --from=build-env /build/LoRaEngine/modules/LoRaWanNetworkSrvModule/LoRaWanNetworkSrvModule/out/* ./ COPY --from=build-env /build/LoRaEngine/modules/LoRaWanNetworkSrvModule/LoRaWanNetworkSrvModule/out/* ./
COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/start.sh ./ COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/start.sh ./
COPY LICENSE ./ COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/appsettings.json ./
COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/NOTICE.txt ./ COPY ./LoRaEngine/modules/LoRaWanNetworkSrvModule/NOTICE.txt ./
COPY LICENSE ./
RUN chmod +x ./start.sh RUN chmod +x ./start.sh
ENTRYPOINT ["./start.sh"] ENTRYPOINT ["./start.sh"]

Просмотреть файл

@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"System.Net.Http.HttpClient": "Warning",
"Microsoft.Extensions.Http.DefaultHttpClientFactory": "Warning"
}
}
}