From c1820bd4ed00c5ae4b3296196a565c2902d5136c Mon Sep 17 00:00:00 2001 From: ChiaraBm Date: Tue, 15 Apr 2025 14:46:13 +0200 Subject: [PATCH] Adjusted log levels. Reverted signalr test change --- .../Http/Controllers/Client/ServersController.cs | 2 +- MoonlightServers.Daemon/Abstractions/Server.Initialize.cs | 4 ++-- MoonlightServers.Daemon/Services/DockerImageService.cs | 2 +- MoonlightServers.Daemon/Startup.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MoonlightServers.ApiServer/Http/Controllers/Client/ServersController.cs b/MoonlightServers.ApiServer/Http/Controllers/Client/ServersController.cs index f059f5f..43861a3 100644 --- a/MoonlightServers.ApiServer/Http/Controllers/Client/ServersController.cs +++ b/MoonlightServers.ApiServer/Http/Controllers/Client/ServersController.cs @@ -132,7 +132,7 @@ public class ServersController : Controller { parameters.Add("type", "websocket"); parameters.Add("serverId", server.Id); - }, TimeSpan.FromSeconds(30)); + }, TimeSpan.FromMinutes(15)); // TODO: Configurable var url = ""; diff --git a/MoonlightServers.Daemon/Abstractions/Server.Initialize.cs b/MoonlightServers.Daemon/Abstractions/Server.Initialize.cs index 229a16a..57dfc21 100644 --- a/MoonlightServers.Daemon/Abstractions/Server.Initialize.cs +++ b/MoonlightServers.Daemon/Abstractions/Server.Initialize.cs @@ -86,7 +86,7 @@ public partial class Server StateMachine.OnTransitioned(transition => { - Logger.LogInformation( + Logger.LogDebug( "{source} => {destination} ({trigger})", transition.Source, transition.Destination, @@ -96,7 +96,7 @@ public partial class Server StateMachine.OnTransitionCompleted(transition => { - Logger.LogInformation("State: {state}", transition.Destination); + Logger.LogDebug("State: {state}", transition.Destination); }); // Proxy the events so outside subscribes can react to it and notify websockets diff --git a/MoonlightServers.Daemon/Services/DockerImageService.cs b/MoonlightServers.Daemon/Services/DockerImageService.cs index 4519313..c7b141a 100644 --- a/MoonlightServers.Daemon/Services/DockerImageService.cs +++ b/MoonlightServers.Daemon/Services/DockerImageService.cs @@ -53,7 +53,7 @@ public class DockerImageService var line = $"[{message.ID}] {message.ProgressMessage}"; - Logger.LogInformation("{line}", line); + Logger.LogDebug("{line}", line); if (onProgressUpdated != null) onProgressUpdated.Invoke(line); diff --git a/MoonlightServers.Daemon/Startup.cs b/MoonlightServers.Daemon/Startup.cs index 3f8ad68..000a3d4 100644 --- a/MoonlightServers.Daemon/Startup.cs +++ b/MoonlightServers.Daemon/Startup.cs @@ -89,7 +89,7 @@ public class Startup { WebApplicationBuilder.WebHost.ConfigureKestrel(options => { - options.Limits.MaxRequestBodySize = ByteConverter.FromMegaBytes(Configuration.Files.UploadLimit).Bytes; + options.Limits.MaxRequestBodySize = ByteConverter.FromMegaBytes(Configuration.Files.UploadChunkSize).Bytes; }); return Task.CompletedTask;