Add logging around db config loading (#1875)

This commit is contained in:
Charis Kyriakou
2022-12-15 12:21:20 +00:00
committed by GitHub
parent 468c4a2539
commit 727da3d78c

View File

@@ -130,10 +130,14 @@ export class DbConfigStore extends DisposableObject {
private async loadConfig(): Promise<void> {
if (!(await pathExists(this.configPath))) {
void this.app.logger.log(
`Creating new database config file at ${this.configPath}`,
);
await this.writeConfig(this.createEmptyConfig());
}
await this.readConfig();
void this.app.logger.log(`Database config loaded from ${this.configPath}`);
}
private async readConfig(): Promise<void> {