mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-21 06:39:01 +08:00
Make sure this logger is started
This commit is contained in:
parent
dc8f84d28e
commit
a0bf59ae29
1 changed files with 2 additions and 1 deletions
|
@ -336,7 +336,8 @@ class Command {
|
|||
private function set_scope_hooks( $hooks ) {
|
||||
$this->scope_hooks = $hooks;
|
||||
$pseudo_hook = "before {$hooks[0]}";
|
||||
$this->loggers[ "before {$hooks[0]}" ] = new Logger( 'hook', '' );
|
||||
$this->loggers[ $pseudo_hook ] = new Logger( 'hook', '' );
|
||||
$this->loggers[ $pseudo_hook ]->start();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue