Wrap log dump in debug