From 42b40636991b97fe818007fab19091764fc5db73 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 15 Jul 2022 15:30:14 +0200 Subject: Add ability for client to create server logs --- client/src/app/shared/shared-custom-markup/custom-markup.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client/src/app/shared/shared-custom-markup/custom-markup.service.ts') diff --git a/client/src/app/shared/shared-custom-markup/custom-markup.service.ts b/client/src/app/shared/shared-custom-markup/custom-markup.service.ts index a959b336d..d738a644e 100644 --- a/client/src/app/shared/shared-custom-markup/custom-markup.service.ts +++ b/client/src/app/shared/shared-custom-markup/custom-markup.service.ts @@ -20,6 +20,7 @@ import { VideosListMarkupComponent } from './peertube-custom-tags' import { CustomMarkupComponent } from './peertube-custom-tags/shared' +import { logger } from '@root-helpers/logger' type AngularBuilderFunction = (el: HTMLElement) => ComponentRef type HTMLBuilderFunction = (el: HTMLElement) => HTMLElement @@ -70,7 +71,7 @@ export class CustomMarkupService { // Insert as first child e.insertBefore(element, e.firstChild) } catch (err) { - console.error('Cannot inject component %s.', selector, err) + logger.error(`Cannot inject component ${selector}`, err) } }) } @@ -90,7 +91,7 @@ export class CustomMarkupService { this.dynamicElementService.injectElement(e, component) } catch (err) { - console.error('Cannot inject component %s.', selector, err) + logger.error(`Cannot inject component ${selector}`, err) } }) } -- cgit v1.2.3