bug fix - log was incorrectly injected into other methods a type if only one had log attribute