소스 검색

Silence noisy MediaboxService (#873)

Lennart Grahl 6 년 전
부모
커밋
be58623a9a
1개의 변경된 파일0개의 추가작업 그리고 12개의 파일을 삭제
  1. 0 12
      src/services/mediabox.ts

+ 0 - 12
src/services/mediabox.ts

@@ -16,16 +16,11 @@
  */
 
 import {AsyncEvent} from 'ts-events';
-import {Logger} from 'ts-log';
-
-import {LogService} from './log';
 
 /**
  * This service is responsible for showing / hiding the media box.
  */
 export class MediaboxService {
-    private readonly log: Logger;
-
     /**
      * This event is triggered every time the media element changes.
      *
@@ -41,16 +36,10 @@ export class MediaboxService {
     public filename: string = '';
     public mimetype: string = '';
 
-    public static $inject = ['LogService'];
-    constructor(logService: LogService) {
-        this.log = logService.getLogger('Mediabox-S');
-    }
-
     /**
      * Update media data.
      */
     public setMedia(data: ArrayBuffer, filename: string, mimetype: string, caption: string) {
-        this.log.debug('Media data updated');
         this.data = data;
         this.filename = filename;
         this.mimetype = mimetype;
@@ -62,7 +51,6 @@ export class MediaboxService {
      * Clear media data.
      */
     public clearMedia() {
-        this.log.debug('Media data cleared');
         this.data = null;
         this.filename = '';
         this.mimetype = '';