Added debug flags for certain logging methods.