From a3bce27ac19dfd940a34c4c148c0f617f513feed Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 29 Feb 2024 09:43:01 +0000 Subject: Dump content with millisecond timings... --- MatrixMediaGate/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1