mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
Logging: Handle calls with 'undefined' context
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
327206d60c
commit
a87408009d
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,9 @@ export class ConsoleLoggerService {
|
||||||
|
|
||||||
private makeContextString(functionContext: string): string {
|
private makeContextString(functionContext: string): string {
|
||||||
let context = this.classContext;
|
let context = this.classContext;
|
||||||
|
if (!context) {
|
||||||
|
context = 'HedgeDoc';
|
||||||
|
}
|
||||||
if (functionContext) {
|
if (functionContext) {
|
||||||
context += '.' + functionContext + '()';
|
context += '.' + functionContext + '()';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue