Fixed logging of privelege change.