Skip to content

Commit

Permalink
fix: removal of network-logs on stop, rebase
Browse files Browse the repository at this point in the history
Signed-off-by: Iliya Savov <isavov@users.noreply.github.com>
  • Loading branch information
isavov committed Jan 3, 2024
1 parent f477714 commit c4dd26d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/CLIService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export class CLIService implements IService{
CLIService.userComposeDirOption(yargs);
CLIService.blocklistingOption(yargs);
CLIService.enableDebugOption(yargs);
CLIService.workDirOption(yargs);

}

Expand All @@ -84,6 +83,7 @@ export class CLIService implements IService{

private static loadCommonOptions(yargs: Argv<{}>): void {
CLIService.verboseLevelOption(yargs);
CLIService.workDirOption(yargs);
}

public getCurrentArgv() {
Expand Down
3 changes: 2 additions & 1 deletion src/state/StopState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export class StopState implements IState{
shell.exec(`docker compose down -v --remove-orphans 2>${nullOutput}`);
this.logger.trace('Cleaning the volumes and temp files...', this.stateName);
shell.exec(`rm -rf network-logs/* >${nullOutput} 2>&1`);
shell.exec(`rm -rf ${join(this.cliOptions.workDir, "network-logs")} >${nullOutput} 2>&1`);
this.logger.trace(`Working dir is ${this.cliOptions.workDir}`, this.stateName);
shell.exec(`rm -rf "${join(this.cliOptions.workDir, "network-logs")}" 2>&1`);
shell.exec(`docker network prune -f 2>${nullOutput}`);
shell.cd(rootPath);
this.logger.info('Hedera Local Node was stopped successfully.', this.stateName);
Expand Down

0 comments on commit c4dd26d

Please sign in to comment.