feat: add caching debug logs and configurable max concurrent requests for Komga API to enhance performance monitoring

This commit is contained in:
Julien Froidefond
2025-10-18 09:08:41 +02:00
parent ae4b766085
commit b7704207ec
42 changed files with 1141 additions and 1302 deletions

View File

@@ -87,11 +87,6 @@ export const ERROR_CODES = {
INVALID_TOKEN: "MIDDLEWARE_INVALID_TOKEN",
INVALID_SESSION: "MIDDLEWARE_INVALID_SESSION",
},
DEBUG: {
FETCH_ERROR: "DEBUG_FETCH_ERROR",
SAVE_ERROR: "DEBUG_SAVE_ERROR",
CLEAR_ERROR: "DEBUG_CLEAR_ERROR",
},
CLIENT: {
FETCH_ERROR: "CLIENT_FETCH_ERROR",
NETWORK_ERROR: "CLIENT_NETWORK_ERROR",

View File

@@ -85,11 +85,6 @@ export const ERROR_MESSAGES: Record<string, string> = {
[ERROR_CODES.CONFIG.TTL_SAVE_ERROR]: "⏱️ Error saving TTL configuration",
[ERROR_CODES.CONFIG.TTL_FETCH_ERROR]: "⏱️ Error fetching TTL configuration",
// Debug
[ERROR_CODES.DEBUG.FETCH_ERROR]: "🔍 Error fetching logs",
[ERROR_CODES.DEBUG.SAVE_ERROR]: "💾 Error saving log",
[ERROR_CODES.DEBUG.CLEAR_ERROR]: "🧹 Error clearing logs",
// Client
[ERROR_CODES.CLIENT.FETCH_ERROR]: "🌐 Error during request",
[ERROR_CODES.CLIENT.NETWORK_ERROR]: "📡 Network connection error",