update debug flag on logger object