From 0306b54a0f2a2a10a3c048299c59dd181306f1e7 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 31 Jul 2025 16:36:48 +0800 Subject: [PATCH] :loud_sound: Add logging to the last active info flush --- DysonNetwork.Pass/Handlers/LastActiveFlushHandler.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/DysonNetwork.Pass/Handlers/LastActiveFlushHandler.cs b/DysonNetwork.Pass/Handlers/LastActiveFlushHandler.cs index 870c19d..d45dd1f 100644 --- a/DysonNetwork.Pass/Handlers/LastActiveFlushHandler.cs +++ b/DysonNetwork.Pass/Handlers/LastActiveFlushHandler.cs @@ -53,10 +53,18 @@ public class LastActiveFlushHandler(IServiceProvider srp, ILogger logger) : IJob { public async Task Execute(IJobExecutionContext context) { - await fbs.FlushAsync(hdl); + try + { + logger.LogInformation("Running LastActiveInfo flush job..."); + await fbs.FlushAsync(hdl); + logger.LogInformation("Completed LastActiveInfo flush job..."); + } catch (Exception ex) + { + logger.LogError(ex, "Error running LastActiveInfo job..."); + } } } \ No newline at end of file