From fc769666d6124f8638bd03c0842ca1477844cf30 Mon Sep 17 00:00:00 2001 From: "tan.nguyen" Date: Thu, 28 Mar 2024 23:21:39 +0700 Subject: [PATCH] test --- src/Commands/ArtifactCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Commands/ArtifactCommand.php b/src/Commands/ArtifactCommand.php index f355d53..0e1c22a 100644 --- a/src/Commands/ArtifactCommand.php +++ b/src/Commands/ArtifactCommand.php @@ -223,14 +223,14 @@ protected function configure(): void { * @throws \Exception */ protected function execute(InputInterface $input, OutputInterface $output): int { - // Setup io and logger. - $this->io = new SymfonyStyle($input, $output); - $tmpLogFile = sys_get_temp_dir() . DIRECTORY_SEPARATOR . time() . '-artifact-log.log'; - $this->logger = self::createLogger((string) $this->getName(), $output, $tmpLogFile); // If log option was set, we set verbosity is very verbose. if ($input->getOption('log')) { $output->setVerbosity(OutputInterface::VERBOSITY_VERY_VERBOSE); } + // Setup io and logger. + $this->io = new SymfonyStyle($input, $output); + $tmpLogFile = sys_get_temp_dir() . DIRECTORY_SEPARATOR . time() . '-artifact-log.log'; + $this->logger = self::createLogger((string) $this->getName(), $output, $tmpLogFile); $remote = $input->getArgument('remote'); try { // Let resolve options into properties first.