Error when i use cake 3.6 with debugkit
Closed this issue · 4 comments
#In the latest version of debugkit, they use setLogger() instead of logger().
https://github.com/cakephp/debug_kit/blame/0d70858a4f01d24f17514ee2f9dc0f0c92f4f3e8/src/Panel/SqlLogPanel.php#L67
So it creates an exception because the returned logger is not an instance of the Psr\Log\LoggerInterface
This could be the solution
2882e91
ref : cakephp/debug_kit#624
I've managed to sidestep this issue like this
public function setLogger($logger)
{
$this->logger = new NullLogger();
}
I have the same issue but can't use @davidyell's workaround.
@Nic0tiN Make some noise on the debugkit issue linked in first comment. This issue should be fixed in debukit / core and people shouldn't have to resort to workarounds in app/plugin code.
In cake 3.7 there is similar problem:
When DebugKit plugin is enabled exception Muffin\Webservice\Exception\UnimplementedWebserviceMethodException
is thrown with following the error message:
Webservice [servicename] does not implement isQueryLoggingEnabled