Add temporary debug logging for #344 (revert later)