fix logging for Postgres if warnings is not available at first check