mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 17:56:30 -05:00
ConsoleLoggerService: Fix type of context properties
Nullish values of functionContext and classContext are handled correctly, so the type can be adjusted Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
52bb44a561
commit
56ce66bc8b
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ import { needToLog } from '../config/utils';
|
|||
|
||||
@Injectable({ scope: Scope.TRANSIENT })
|
||||
export class ConsoleLoggerService {
|
||||
private classContext: string;
|
||||
private classContext: string | undefined;
|
||||
private lastTimestamp: number;
|
||||
|
||||
constructor(
|
||||
|
@ -83,7 +83,7 @@ export class ConsoleLoggerService {
|
|||
}
|
||||
}
|
||||
|
||||
private makeContextString(functionContext: string): string {
|
||||
private makeContextString(functionContext?: string): string {
|
||||
let context = this.classContext;
|
||||
if (!context) {
|
||||
context = 'HedgeDoc';
|
||||
|
|
Loading…
Reference in a new issue