Either a lack of air or a log impeding on the flame creates soot.