Skip to content

Commit

Permalink
feat(cli): hide dump/export log
Browse files Browse the repository at this point in the history
  • Loading branch information
juanrgm committed Jan 25, 2024
1 parent 3959c71 commit 0ab9b90
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions packages/cli/src/tasks/PostgresqlDumpTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,13 @@ export class PostgresqlDumpTask extends SqlDumpTaskAbstract<PostgresqlDumpTaskCo
...(await this.buildConnectionArgs(this.config.database)),
...(tableNames?.flatMap((v) => ["-t", v]) ?? []),
],
{ $log: this.verbose },
{
$log: {
exec: this.verbose,
stderr: this.verbose,
allToStderr: true,
},
},
);

await dumpProcess.stdout.pipe(output, onProgress);
Expand All @@ -102,7 +108,13 @@ export class PostgresqlDumpTask extends SqlDumpTaskAbstract<PostgresqlDumpTaskCo
await AsyncProcess.exec(
"psql",
[...(await this.buildConnectionArgs(database)), "-f", normalize(path)],
{ $log: this.verbose },
{
$log: {
exec: this.verbose,
stderr: this.verbose,
allToStderr: true,
},
},
);
}
}

0 comments on commit 0ab9b90

Please sign in to comment.