Skip to content

Commit 88407bb

Browse files
committed
Debugging
1 parent ebae142 commit 88407bb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Context/FeatureContext.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -978,14 +978,17 @@ public function create_config( $subdir = '', $extra_php = false ) {
978978
}
979979

980980
error_log( 'Creating wp-config.php in Run Dir: ' . $run_dir );
981-
error_log( 'Config Cache Path: ' . $config_cache_path . ' ' . file_exists( $config_cache_path ) );
981+
error_log( 'Config Cache Path: ' . $config_cache_path . ' ' . (int) file_exists( $config_cache_path ) );
982982

983983
error_log( print_r( scandir( $run_dir ), true ) );
984984

985985
if ( $config_cache_path && file_exists( $config_cache_path ) ) {
986986
copy( $config_cache_path, $run_dir . '/wp-config.php' );
987987
} else {
988-
$this->proc( 'wp config create', $params, $subdir )->run_check();
988+
$result = $this->proc( 'wp config create', $params, $subdir )->run_check();
989+
error_log( 'Running wp config create ' . Utils\assoc_args_to_str( $params ) . ' in Run Dir:' . $run_dir );
990+
error_log( $result->stderr );
991+
error_log( $result->stdout );
989992
if ( $config_cache_path && file_exists( $run_dir . '/wp-config.php' ) ) {
990993
copy( $run_dir . '/wp-config.php', $config_cache_path );
991994
}

0 commit comments

Comments
 (0)