Add more extensive logging to sdb.