Less stupid decorator for logging