]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+plugin-pages/plugin-pages.component.ts
Fix client lint
[github/Chocobozzz/PeerTube.git] / client / src / app / +plugin-pages / plugin-pages.component.ts
index 973e4d021104bad1d7bb3c8649359a33f62cdf51..9fe4b413e8f3b6166e86a2ac2ef660294808fd5c 100644 (file)
@@ -1,6 +1,7 @@
 import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core'
 import { ActivatedRoute, Router } from '@angular/router'
 import { PluginService } from '@app/core'
+import { logger } from '@root-helpers/logger'
 
 @Component({
   templateUrl: './plugin-pages.component.html'
@@ -26,7 +27,7 @@ export class PluginPagesComponent implements AfterViewInit {
 
     const registered = this.pluginService.getRegisteredClientRoute(path)
     if (!registered) {
-      console.log('Could not find registered route %s.', path, this.pluginService.getAllRegisteredClientRoutes())
+      logger.info(`Could not find registered route ${path}`, this.pluginService.getAllRegisteredClientRoutes())
 
       return this.router.navigate([ '/404' ], { skipLocationChange: true })
     }