Clean up logging service.
This commit is contained in:
parent
8ac1cdf476
commit
ff3c1cf04e
@ -1,6 +1,5 @@
|
|||||||
import { LogLevel } from './log-message';
|
import { LogLevel } from './log-message';
|
||||||
import Logger from './logger';
|
import Logger from './logger';
|
||||||
import { default as Axios, AxiosInstance } from 'axios';
|
|
||||||
|
|
||||||
const ROOT_LOGGER_NAME = 'ROOT';
|
const ROOT_LOGGER_NAME = 'ROOT';
|
||||||
|
|
||||||
@ -8,7 +7,6 @@ const ROOT_LOGGER_NAME = 'ROOT';
|
|||||||
export class LogService {
|
export class LogService {
|
||||||
|
|
||||||
private loggers: { [key: string]: Logger };
|
private loggers: { [key: string]: Logger };
|
||||||
private http: AxiosInstance = Axios.create();
|
|
||||||
|
|
||||||
public get ROOT_LOGGER() {
|
public get ROOT_LOGGER() {
|
||||||
return this.loggers[ROOT_LOGGER_NAME];
|
return this.loggers[ROOT_LOGGER_NAME];
|
||||||
|
@ -32,7 +32,7 @@ export class AuthStoreModule extends VuexModule {
|
|||||||
// this should be guaranteed by the server (redirect HTTP -> HTTPS)
|
// this should be guaranteed by the server (redirect HTTP -> HTTPS)
|
||||||
// but we'll do a sanity check just to make sure.
|
// but we'll do a sanity check just to make sure.
|
||||||
if (window.location.protocol === 'https:' ||
|
if (window.location.protocol === 'https:' ||
|
||||||
process.env.NODE_ENV === 'development') { // allow in dev
|
process.env.NODE_ENV === 'development') { // allow http in dev
|
||||||
localStorage.setItem(SESSION_KEY, authToken);
|
localStorage.setItem(SESSION_KEY, authToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user