aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorOliver Schramm <oliver.schramm97@gmail.com>2016-08-12 01:01:14 +0200
committerOliver Schramm <oliver.schramm97@gmail.com>2016-08-12 02:01:01 +0200
commit4a92a8efb549c740f61655836f85de9be5c5b548 (patch)
tree7296cf80b1d5250a84a4c00041aeba8fc0401ee4 /phpBB/phpbb
parentc12d67cd900514f9752d7bb73928870dbab0a0ce (diff)
downloadforums-4a92a8efb549c740f61655836f85de9be5c5b548.tar
forums-4a92a8efb549c740f61655836f85de9be5c5b548.tar.gz
forums-4a92a8efb549c740f61655836f85de9be5c5b548.tar.bz2
forums-4a92a8efb549c740f61655836f85de9be5c5b548.tar.xz
forums-4a92a8efb549c740f61655836f85de9be5c5b548.zip
[ticket/14742] Improve verbosity of migrator output
PHPBB3-14742
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/db/migrator.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/phpBB/phpbb/db/migrator.php b/phpBB/phpbb/db/migrator.php
index b82b1b918a..eb3bc7eaf5 100644
--- a/phpBB/phpbb/db/migrator.php
+++ b/phpBB/phpbb/db/migrator.php
@@ -310,7 +310,9 @@ class migrator
if (!$state['migration_schema_done'])
{
- $this->output_handler->write(array('MIGRATION_SCHEMA_RUNNING', $name), migrator_output_handler_interface::VERBOSITY_VERBOSE);
+ $verbosity = empty($state['migration_data_state']) ?
+ migrator_output_handler_interface::VERBOSITY_VERBOSE : migrator_output_handler_interface::VERBOSITY_DEBUG;
+ $this->output_handler->write(array('MIGRATION_SCHEMA_RUNNING', $name), $verbosity);
$this->last_run_migration['task'] = 'process_schema_step';
$elapsed_time = microtime(true);
@@ -334,7 +336,9 @@ class migrator
{
try
{
- $this->output_handler->write(array('MIGRATION_DATA_RUNNING', $name), migrator_output_handler_interface::VERBOSITY_VERBOSE);
+ $verbosity = empty($state['migration_data_state']) ?
+ migrator_output_handler_interface::VERBOSITY_VERBOSE : migrator_output_handler_interface::VERBOSITY_DEBUG;
+ $this->output_handler->write(array('MIGRATION_DATA_RUNNING', $name), $verbosity);
$this->last_run_migration['task'] = 'process_data_step';