New: commit with logging for troubleshooting