Skip to content

Commit b0c4ccb

Browse files
authored
Merge pull request #169 from kevintechie/fix-name-space
fixing extra space in parent logger name
2 parents 665e941 + 35b7e9f commit b0c4ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BaseLogger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export class BaseLogger<LogObj> {
289289
// name
290290
let parentNamesString = this.settings.parentNames?.join(this.settings.prettyErrorParentNamesSeparator);
291291
parentNamesString = parentNamesString != null && logObjMeta?.name != null ? parentNamesString + this.settings.prettyErrorParentNamesSeparator : undefined;
292-
placeholderValues["name"] = logObjMeta?.name != null || parentNamesString != null ? " " + (parentNamesString ?? "") + logObjMeta?.name ?? "" : "";
292+
placeholderValues["name"] = logObjMeta?.name != null || parentNamesString != null ? (parentNamesString ?? "") + logObjMeta?.name ?? "" : "";
293293

294294
return formatTemplate(this.settings, template, placeholderValues);
295295
}

0 commit comments

Comments
 (0)