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