Skip to content

Commit

Permalink
Merge pull request #9 from luke-nehemedia/master
Browse files Browse the repository at this point in the history
Log CLI-Output in devMode
  • Loading branch information
sjelfull authored Mar 24, 2020
2 parents d706068 + f79ef8a commit 6966ed1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/services/MJMLService.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ public function parseCli($html = null)

$cmd = "$mjmlPath $tempPath -o $tempOutputPath";

$this->executeShellCommand($cmd);
$message = $this->executeShellCommand($cmd);

// Log Cli output if in devMode
if(Craft::$app->getConfig()->general->devMode){
Craft::info($message, 'mjml');
}
}

$output = file_get_contents($tempOutputPath);
Expand Down

0 comments on commit 6966ed1

Please sign in to comment.