diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-15 15:30:14 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-18 11:37:18 +0200 |
commit | 42b40636991b97fe818007fab19091764fc5db73 (patch) | |
tree | db431787c06ce898d22e91ff771f795219274fc6 /client/src/app/+plugin-pages | |
parent | 654d4ede7fa4d0faa71e49bcfab6b65a686397b2 (diff) | |
download | PeerTube-42b40636991b97fe818007fab19091764fc5db73.tar.gz PeerTube-42b40636991b97fe818007fab19091764fc5db73.tar.zst PeerTube-42b40636991b97fe818007fab19091764fc5db73.zip |
Add ability for client to create server logs
Diffstat (limited to 'client/src/app/+plugin-pages')
-rw-r--r-- | client/src/app/+plugin-pages/plugin-pages.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/+plugin-pages/plugin-pages.component.ts b/client/src/app/+plugin-pages/plugin-pages.component.ts index 973e4d021..9fe4b413e 100644 --- a/client/src/app/+plugin-pages/plugin-pages.component.ts +++ b/client/src/app/+plugin-pages/plugin-pages.component.ts | |||
@@ -1,6 +1,7 @@ | |||
1 | import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core' | 1 | import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core' |
2 | import { ActivatedRoute, Router } from '@angular/router' | 2 | import { ActivatedRoute, Router } from '@angular/router' |
3 | import { PluginService } from '@app/core' | 3 | import { PluginService } from '@app/core' |
4 | import { logger } from '@root-helpers/logger' | ||
4 | 5 | ||
5 | @Component({ | 6 | @Component({ |
6 | templateUrl: './plugin-pages.component.html' | 7 | templateUrl: './plugin-pages.component.html' |
@@ -26,7 +27,7 @@ export class PluginPagesComponent implements AfterViewInit { | |||
26 | 27 | ||
27 | const registered = this.pluginService.getRegisteredClientRoute(path) | 28 | const registered = this.pluginService.getRegisteredClientRoute(path) |
28 | if (!registered) { | 29 | if (!registered) { |
29 | console.log('Could not find registered route %s.', path, this.pluginService.getAllRegisteredClientRoutes()) | 30 | logger.info(`Could not find registered route ${path}`, this.pluginService.getAllRegisteredClientRoutes()) |
30 | 31 | ||
31 | return this.router.navigate([ '/404' ], { skipLocationChange: true }) | 32 | return this.router.navigate([ '/404' ], { skipLocationChange: true }) |
32 | } | 33 | } |