Updated incorrect level-setting code to use setLevel(). (GH-16325)

2 files changed