changing logging flag