In jdbc monitoring feature, avoids logging useless messages for users that are not spied.