Skip to content

Commit f9512b1

Browse files
committed
[CKLS-1042] Change logLevel to info
1 parent ea37fd3 commit f9512b1

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

generator/lib/task/PropelMigrationDownTask.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function main()
5252
$this->log(sprintf(
5353
'[%s] preDown() returned false. Aborting migration.',
5454
$manager->getMigrationClassName($nextMigrationTimestamp)
55-
), Project::MSG_ERR);
55+
));
5656

5757
return false;
5858
}
@@ -78,17 +78,17 @@ public function main()
7878
'[%s] Failed to execute SQL "%s"',
7979
$manager->getMigrationClassName($nextMigrationTimestamp),
8080
$statement
81-
), Project::MSG_ERR);
81+
));
8282
// continue
8383
}
8484
}
8585
if (!$res) {
86-
$this->log('No statement was executed. The version was not updated.', Project::MSG_ERR);
86+
$this->log('No statement was executed. The version was not updated.');
8787
$this->log(sprintf(
8888
'Please review the code in "%s"',
8989
$manager->getMigrationDir() . DIRECTORY_SEPARATOR . $manager->getMigrationClassName($nextMigrationTimestamp)
90-
), Project::MSG_ERR);
91-
$this->log('Migration aborted', Project::MSG_ERR);
90+
));
91+
$this->log('Migration aborted');
9292

9393
return false;
9494
}

generator/lib/task/PropelMigrationTask.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function main()
4949
$this->log(sprintf(
5050
'[%s] preUp() returned false. Aborting migration.',
5151
$manager->getMigrationClassName($timestamp)
52-
), Project::MSG_ERR);
52+
));
5353

5454
return false;
5555
}
@@ -74,17 +74,17 @@ public function main()
7474
'[%s] Failed to execute SQL "%s"',
7575
$manager->getMigrationClassName($timestamp),
7676
$statement
77-
), Project::MSG_ERR);
77+
));
7878
// continue
7979
}
8080
}
8181
if (!$res) {
82-
$this->log('No statement was executed. The version was not updated.', Project::MSG_ERR);
82+
$this->log('No statement was executed. The version was not updated.');
8383
$this->log(sprintf(
8484
'Please review the code in "%s"',
8585
$manager->getMigrationDir() . DIRECTORY_SEPARATOR . $manager->getMigrationClassName($timestamp)
86-
), Project::MSG_ERR);
87-
$this->log('Migration aborted', Project::MSG_ERR);
86+
));
87+
$this->log('Migration aborted');
8888

8989
return false;
9090
}

generator/lib/task/PropelMigrationUpTask.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function main()
4444
$this->log(sprintf(
4545
'[%s] preUp() returned false. Aborting migration.',
4646
$manager->getMigrationClassName($nextMigrationTimestamp)
47-
), Project::MSG_ERR);
47+
));
4848

4949
return false;
5050
}
@@ -70,19 +70,19 @@ public function main()
7070
'[%s] Failed to execute SQL "%s"',
7171
$manager->getMigrationClassName($nextMigrationTimestamp),
7272
$statement
73-
), Project::MSG_ERR);
73+
));
7474

7575
return false;
7676
// continue
7777
}
7878
}
7979
if (!$res) {
80-
$this->log('No statement was executed. The version was not updated.', Project::MSG_ERR);
80+
$this->log('No statement was executed. The version was not updated.');
8181
$this->log(sprintf(
8282
'Please review the code in "%s"',
8383
$manager->getMigrationDir() . DIRECTORY_SEPARATOR . $manager->getMigrationClassName($nextMigrationTimestamp)
84-
), Project::MSG_ERR);
85-
$this->log('Migration aborted', Project::MSG_ERR);
84+
));
85+
$this->log('Migration aborted');
8686

8787
return false;
8888
}

0 commit comments

Comments
 (0)