@@ -52,7 +52,6 @@ protected function configure() {
52
52
* Execute Database Janitor functions based on values passed.
53
53
*/
54
54
protected function execute (InputInterface $ input , OutputInterface $ output ) {
55
-
56
55
// Set up configuration.
57
56
$ helper = $ this ->getHelper ('question ' );
58
57
$ this ->host = $ input ->getOption ('host ' );
@@ -74,6 +73,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
74
73
// "default" until I hear otherwise.
75
74
require_once $ input ->getOption ('drupal ' );
76
75
if ($ databases ['default ' ] && is_array ($ databases ['default ' ])) {
76
+ fwrite (STDERR , "Loading Drupal configuration. \n" );
77
77
$ db_array = $ databases ['default ' ]['default ' ];
78
78
$ this ->host = $ db_array ['host ' ];
79
79
$ this ->username = $ db_array ['username ' ];
@@ -86,13 +86,15 @@ protected function execute(InputInterface $input, OutputInterface $output) {
86
86
);
87
87
88
88
if (!$ input ->getOption ('trim ' )) {
89
+ fwrite (STDERR , "Dumping database. \n" );
89
90
$ dumpresult = $ this ->janitor ->dump ();
90
91
if (!$ dumpresult ) {
91
92
$ output ->writeln ("Something went horribly wrong. " );
92
93
}
93
94
}
94
95
95
96
else {
97
+ fwrite (STDERR , "Trimming and scrubbing tables \n" );
96
98
$ trimmed_tables = $ this ->janitor ->trim ();
97
99
$ scrubbed_tables = $ this ->janitor ->scrub ();
98
100
$ ignore_tables = array_merge ($ trimmed_tables , $ scrubbed_tables );
@@ -104,7 +106,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
104
106
$ this ->janitor = new DatabaseJanitor (
105
107
$ this ->database , $ this ->username , $ this ->host , $ this ->password , $ this ->configuration
106
108
);
107
-
109
+ fwrite ( STDERR , " Dumping database. \n" );
108
110
$ dumpresult = $ this ->janitor ->dump ();
109
111
if (!$ dumpresult ) {
110
112
printf ("Something went horribly wrong. " );
0 commit comments