about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-02-29 09:43:01 +0000
committerRory& <root@rory.gay>2024-02-29 09:43:01 +0000
commita3bce27ac19dfd940a34c4c148c0f617f513feed (patch)
tree9e8023789133d29d3a4f554d9e10cd37bd16a34a
parentDump content (diff)
downloadMatrixMediaGate-github/master.tar.xz
Dump content with millisecond timings... HEAD github/master master
-rw-r--r--MatrixMediaGate/Program.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MatrixMediaGate/Program.cs b/MatrixMediaGate/Program.cs
index 1785434..230428b 100644
--- a/MatrixMediaGate/Program.cs
+++ b/MatrixMediaGate/Program.cs
@@ -130,7 +130,7 @@ async Task ProxyDump(ProxyConfiguration cfg, HttpContext ctx, HttpRequestMessage
     if (ctx.Response.StatusCode >= 400 && cfg.DumpFailedRequests) {
         var dir = Path.Combine(cfg.DumpPath, "failed_requests");
         Directory.CreateDirectory(dir);
-        var path = Path.Combine(dir, $"{(int)resp?.StatusCode}-{DateTimeOffset.UtcNow.ToUnixTimeSeconds()}-{ctx.Request.GetEncodedPathAndQuery().Replace('/', '_')}.json");
+        var path = Path.Combine(dir, $"{(int)resp?.StatusCode}-{DateTimeOffset.UtcNow.ToUnixTimeMilliseconds()}-{ctx.Request.GetEncodedPathAndQuery().Replace('/', '_')}.json");
         await using var file = File.Create(path);
         
         //collect data