[Engine] Only log config related calls if CONFIG_DEBUG is defined

This reduces log noise and also prevents logging potentially sensitive data
like passwords.