Fixed logging in backend