Server: Enable logging
Bugfix: flatten code for events view