update logging variable on pref change