Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/external/Collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ class Collector extends BaseExternal {
}

buildLogAPIUrl(request: any, baseDomain = CONFIG.explorerUrl): string {
const apiUrl = `${baseDomain}/api/v2/logs`
const apiUrl = `${baseDomain}/api/log`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Ensure that the new endpoint /api/log matches the expected API route on the backend. If the backend expects /api/logs or a different path, this change could break logging functionality. [possible issue, importance: 7]

Suggested change
const apiUrl = `${baseDomain}/api/log`
const apiUrl = `${baseDomain}/api/logs`

const queryParams: string[] = []

// Check if each query parameter exists in the request object and add it to the queryParams array if it does
Expand Down
Loading