You forgot to rename `$logger` to `$debug`.