fix logging decorator (at least for single-nesting)