aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-08-24 08:55:24 -0500
committerJP Dillingham <jp@dillingham.me>2026-08-24 08:55:24 -0500
commite5a8ae30b640212386cbb4e1fffd2ae937234793 (patch)
treecf55e0b96bde1ba9da431ea86ef14d3e3ca4bb9d /src
parent3b2d0c62f410a4db800055b831bf37c1e512c1b7 (diff)
downloadslskd-e5a8ae30b640212386cbb4e1fffd2ae937234793.tar.gz
forget about downloading a zip
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Core/API/Controllers/LogsController.cs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/slskd/Core/API/Controllers/LogsController.cs b/src/slskd/Core/API/Controllers/LogsController.cs
index 569848b2..a35c6097 100644
--- a/src/slskd/Core/API/Controllers/LogsController.cs
+++ b/src/slskd/Core/API/Controllers/LogsController.cs
@@ -35,7 +35,6 @@ namespace slskd.Core.API
using System;
using System.Collections.Generic;
using System.IO;
- using System.IO.Compression;
using System.Threading;
using System.Threading.Tasks;
using Asp.Versioning;
@@ -88,16 +87,6 @@ namespace slskd.Core.API
RecurseSubdirectories = false,
});
- if (download)
- {
- var stream = new MemoryStream();
- await ZipFile.CreateFromDirectoryAsync(Program.LogDirectory, stream, cancellationToken: cancellationToken);
-
- var now = DateTime.UtcNow;
-
- return File(stream, "application/zip", $"logs-{now:yyyyMMdd}-{new DateTimeOffset(now).ToUnixTimeMilliseconds}.zip");
- }
-
return Ok(directory.Files);
}