Add logging around db config loading (#1875)
This commit is contained in:
@@ -130,10 +130,14 @@ export class DbConfigStore extends DisposableObject {
|
|||||||
|
|
||||||
private async loadConfig(): Promise<void> {
|
private async loadConfig(): Promise<void> {
|
||||||
if (!(await pathExists(this.configPath))) {
|
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.writeConfig(this.createEmptyConfig());
|
||||||
}
|
}
|
||||||
|
|
||||||
await this.readConfig();
|
await this.readConfig();
|
||||||
|
void this.app.logger.log(`Database config loaded from ${this.configPath}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async readConfig(): Promise<void> {
|
private async readConfig(): Promise<void> {
|
||||||
|
|||||||
Reference in New Issue
Block a user