Changing spurious error logging to either debug or warning