Skip to content

Commit

Permalink
fix: Output LocalStore write log
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesin11 committed Sep 27, 2020
1 parent a51fbc8 commit b0ba8c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/store/gcs_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ export class GcsStore implements Store {

// Write store file
await this.file.save(JSON.stringify(store, null, 2))
if (process.env['CI_ANALYZER_DEBUG']) {
console.debug(`(GcsStore) ${this.gcsPath} was successfully saved.`)
}
console.info(`(GcsStore) ${this.gcsPath} was successfully saved.`)

return store
}
Expand Down
2 changes: 2 additions & 0 deletions src/store/local_store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export class LocalStore implements Store {
await fs.promises.mkdir(outDir, { recursive: true })
await fs.promises.writeFile(this.filePath, JSON.stringify(store, null, 2))

console.info(`(LocalStore) ${this.filePath} was successfully saved.`)

return store
}
}

0 comments on commit b0ba8c8

Please sign in to comment.