Fix logging in REST modules.