Remove circular dependency.
This commit is contained in:
parent
3fc21c25ae
commit
f3c14578da
@ -1,13 +1,12 @@
|
|||||||
import {ErrorHandler, Injectable} from '@angular/core';
|
import {ErrorHandler, Injectable} from '@angular/core';
|
||||||
import {LoggingService} from '@app/_services';
|
import {LoggingService} from '@app/_services/logging.service';
|
||||||
import {HttpErrorResponse} from '@angular/common/http';
|
import {HttpErrorResponse} from '@angular/common/http';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class GlobalErrorHandler extends ErrorHandler {
|
export class GlobalErrorHandler extends ErrorHandler {
|
||||||
private sentencesForWarningLogging: string[] = [];
|
private sentencesForWarningLogging: string[] = [];
|
||||||
private loggingService: LoggingService;
|
|
||||||
|
|
||||||
constructor() {
|
constructor(private loggingService: LoggingService) {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
|
|||||||
import {BehaviorSubject} from 'rxjs';
|
import {BehaviorSubject} from 'rxjs';
|
||||||
import {environment} from '@src/environments/environment';
|
import {environment} from '@src/environments/environment';
|
||||||
import {first} from 'rxjs/operators';
|
import {first} from 'rxjs/operators';
|
||||||
import {HttpWrapperService} from '@app/_services/';
|
import {HttpWrapperService} from '@app/_services/http-wrapper.service';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
|
@ -10,7 +10,7 @@ export const environment = {
|
|||||||
level: NgxLoggerLevel.TRACE,
|
level: NgxLoggerLevel.TRACE,
|
||||||
serverLogLevel: NgxLoggerLevel.ERROR,
|
serverLogLevel: NgxLoggerLevel.ERROR,
|
||||||
loggingUrl: 'http://localhost:8000',
|
loggingUrl: 'http://localhost:8000',
|
||||||
cicAuthUrl: 'https://meta.dev.grassrootseconomics.net',
|
cicAuthUrl: 'http://localhost:8080',
|
||||||
cicMetaUrl: 'http://localhost:63380',
|
cicMetaUrl: 'http://localhost:63380',
|
||||||
publicKeysUrl: 'http://localhost:8000',
|
publicKeysUrl: 'http://localhost:8000',
|
||||||
cicCacheUrl: 'http://localhost:63313',
|
cicCacheUrl: 'http://localhost:63313',
|
||||||
|
Loading…
Reference in New Issue
Block a user