Fix EZP-21055: creating content using API causes memory leaks

Enable logging in dev mode which has bene disabled by default by
the [kernel change](https://github.com/ezsystems/ezpublish-kernel/pull/397) for this issue.