Refactored logging of exceptions to improve output.
Refactored logging of exceptions
Check individual parameters for appropriate privilege rather than checking entire list of parameters.