Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tannguyen04 committed Mar 28, 2024
1 parent e677b62 commit fc76966
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Commands/ArtifactCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit fc76966

Please sign in to comment.