log exception in module