saltstack/salt — pull request #2732 by thekuffs (2012-11-28 20:54:03+00:00)
Title: Add comments to function loader

I added more commentary to `gen_functions()` as @SEJeff requested.

I also switched the `__virtual__()` exception handler to use the much shorter `log.exception()` call that implicitly includes a traceback (http://docs.python.org/2/library/logging.html#logging.exception).