TriggerMenuMT: protect pprint in logging calls
pprint.pformat
is quite expensive and needs to be protected from
evaluation when used in debug messages (the lazy logging
evaluation
does not help here as the function call is evaluated in any case without
extra protection).