MINOR Replaced custom verbose logging flags with standard log levels

This commit is contained in:
Ingo Schommer 2012-01-31 14:24:00 +01:00
parent c08645b3da
commit 7464a47d83
2 changed files with 3 additions and 6 deletions

View File

@ -103,6 +103,8 @@ class CreateChangelog extends SilverStripeBuildTask {
elseif ($from) $range = " $from..HEAD";
else $range = "";
$this->log(sprintf('Changing to directory "%s"', $path), Project::MSG_INFO);
chdir("$this->baseDir/$path"); //switch to the module's path
// Internal serialization format, ideally this would be JSON but we can't escape characters in git logs.

View File

@ -11,11 +11,6 @@ All code covered by the BSD license located at http://silverstripe.org/bsd-licen
*/
abstract class SilverStripeBuildTask extends Task {
/**
* @var boolean
*/
protected $verbose = false;
protected $cleanupEnv = false;
protected function configureEnvFile() {
@ -72,7 +67,7 @@ TEXT;
$ret = null;
$return = null;
if($this->verbose) $this->log($cmd);
$this->log($cmd, Project::MSG_VERBOSE);
if ($returnContent) {
$ret = shell_exec($cmd);