mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/13126] Change messages verbosity levels
PHPBB3-13126
This commit is contained in:
parent
8f6fcd2744
commit
faf4b03c43
3 changed files with 7 additions and 7 deletions
|
@ -58,7 +58,7 @@ class console_migrator_output_handler implements migrator_output_handler_interfa
|
|||
{
|
||||
$translated_message = '<info>' . $translated_message . '</info>';
|
||||
}
|
||||
else if ($verbosity === migrator_output_handler_interface::VERBOSITY_VERY_VERBOSE)
|
||||
else if ($verbosity === migrator_output_handler_interface::VERBOSITY_VERBOSE)
|
||||
{
|
||||
$translated_message = '<comment>' . $translated_message . '</comment>';
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ class html_migrator_output_handler implements migrator_output_handler_interface
|
|||
*/
|
||||
public function write($message, $verbosity)
|
||||
{
|
||||
if ($verbosity <= migrator_output_handler_interface::VERBOSITY_NORMAL)
|
||||
if ($verbosity <= migrator_output_handler_interface::VERBOSITY_VERBOSE)
|
||||
{
|
||||
$final_message = call_user_func_array(array($this->user, 'lang'), $message);
|
||||
echo $final_message . "<br />\n";
|
||||
|
|
|
@ -91,7 +91,7 @@ class migrator
|
|||
|
||||
$this->table_prefix = $table_prefix;
|
||||
|
||||
$this->output_handler = new migrator_output_handler();
|
||||
$this->output_handler = new null_migrator_output_handler();
|
||||
|
||||
foreach ($tools as $tool)
|
||||
{
|
||||
|
@ -257,7 +257,7 @@ class migrator
|
|||
|
||||
$this->last_run_migration['effectively_installed'] = true;
|
||||
|
||||
$this->output_handler->write(array('MIGRATION_EFFECTIVELY_INSTALLED', $name), migrator_output_handler::VERBOSITY_NORMAL);
|
||||
$this->output_handler->write(array('MIGRATION_EFFECTIVELY_INSTALLED', $name), migrator_output_handler::VERBOSITY_VERBOSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -269,7 +269,7 @@ class migrator
|
|||
|
||||
if (!$state['migration_schema_done'])
|
||||
{
|
||||
$this->output_handler->write(array('MIGRATION_SCHEMA_RUNNING', $name), migrator_output_handler::VERBOSITY_VERY_VERBOSE);
|
||||
$this->output_handler->write(array('MIGRATION_SCHEMA_RUNNING', $name), migrator_output_handler::VERBOSITY_VERBOSE);
|
||||
|
||||
$this->last_run_migration['task'] = 'process_schema_step';
|
||||
$elapsed_time = microtime(true);
|
||||
|
@ -286,7 +286,7 @@ class migrator
|
|||
{
|
||||
try
|
||||
{
|
||||
$this->output_handler->write(array('MIGRATION_DATA_RUNNING', $name), migrator_output_handler::VERBOSITY_VERY_VERBOSE);
|
||||
$this->output_handler->write(array('MIGRATION_DATA_RUNNING', $name), migrator_output_handler::VERBOSITY_VERBOSE);
|
||||
|
||||
$this->last_run_migration['task'] = 'process_data_step';
|
||||
|
||||
|
@ -304,7 +304,7 @@ class migrator
|
|||
}
|
||||
else
|
||||
{
|
||||
$this->output_handler->write(array('MIGRATION_DATA_IN_PROGRESS', $name, $elapsed_time), migrator_output_handler::VERBOSITY_VERBOSE);
|
||||
$this->output_handler->write(array('MIGRATION_DATA_IN_PROGRESS', $name, $elapsed_time), migrator_output_handler::VERBOSITY_VERY_VERBOSE);
|
||||
}
|
||||
}
|
||||
catch (\phpbb\db\migration\exception $e)
|
||||
|
|
Loading…
Add table
Reference in a new issue