fix usage of logDebug