2. For the complex number $z=1+\mathrm{i}+\frac{m}{1+\mathrm{i}}$ (where $m$ is a real number), if both the real part and the imaginary part are greater than 0, then the range of values for $m$ is
$\qquad$ .
$$
z=1+\mathrm{i}+\frac{m(1-\mathrm{i})}{2}=1+\frac{m}{2}+\left(1-\frac{m}{2}\right) \mathrm{i} \Rightarrow\left\{\begin{array}{l}
1+\frac{m}{2}>0, \\
1-\frac{m}{2}>0
\end{array} \Rightarrow -2<m<2,\right.
$$

So the range of values for $m$ is $(-2,2)$.