also log a deprecation warning in nested contexts