OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Avoid logging http errors in production mode
Oliver Günther30c6beaa3395
diff --git a/frontend/src/app/modules/hal/services/hal-resource.service.ts b/frontend/src/app/modules/hal/services/hal-resource.service.tsindex f018fb1feb4..3f7312a7333 100644--- a/frontend/src/app/modules/hal/services/hal-resource.service.ts+++ b/frontend/src/app/modules/hal/services/hal-resource.service.ts@@ -44,6 +44,7 @@ import {HTTPClientParamMap,HTTPSupportedMethods} from "core-app/modules/hal/http/http.interfaces";+import {whenDebugging} from "core-app/helpers/debug_output";export interface HalResourceFactoryConfigInterface {cls?:any;@@ -89,7 +90,7 @@ export class HalResourceService {.pipe(map((response:any) => this.createHalResource(response)),catchError((error:HttpErrorResponse) => {- console.error(`Failed to ${method} ${href}: ${error.name}`);+ whenDebugging(() => console.error(`Failed to ${method} ${href}: ${error.name}`));const resource = this.createHalResource<ErrorResource>(error.error);resource.httpError = error;return throwError(resource);