restrict logging