cherry picked commit - updated logging flags in Weapon class