added configurable gl error message level - default is medium