mirror of
https://github.com/andwati/dokploy.git
synced 2026-10-31 01:02:16 +00:00
feat(logs): filter out Dokploy dashboard requests from logs processing
- Added a test case to ensure Dokploy dashboard requests are filtered out correctly. - Updated the logs processing logic to exclude both Dokploy service app and dashboard requests, improving log clarity and relevance.
This commit is contained in:
@@ -163,10 +163,7 @@ export const readMonitoringConfig = async (readAll = false) => {
|
||||
) {
|
||||
const log = JSON.parse(trimmed);
|
||||
// Exclude Dokploy service app and Dashboard requests
|
||||
if (
|
||||
log.ServiceName !== "dokploy-service-app@file" &&
|
||||
!log.RequestPath?.startsWith("/dashboard")
|
||||
) {
|
||||
if (log.ServiceName !== "dokploy-service-app@file") {
|
||||
content += `${line}\n`;
|
||||
validCount++;
|
||||
if (validCount >= 500) {
|
||||
|
||||
Reference in New Issue
Block a user