Logging: Handle calls with 'undefined' context

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2021-04-13 23:21:55 +02:00 committed by David Mehren
parent 6fe10bab4c
commit edc62285a2
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -85,6 +85,9 @@ export class ConsoleLoggerService {
private makeContextString(functionContext: string): string {
let context = this.classContext;
if (!context) {
context = 'HedgeDoc';
}
if (functionContext) {
context += '.' + functionContext + '()';
}