Fix logging and connections on PAAS.