Reduce the scope of the logging changes to just those PRIVS calls related
to the effective (rather than the real) IDs.