Revert gerror conversion for spf module.
Improve logging in spf module.