[8.18] [Obs AI Assistant] Decrease log level to debug (#214598) (#214624)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[Obs AI Assistant] Decrease log level to debug
(#214598)](https://github.com/elastic/kibana/pull/214598)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Søren
Louv-Jansen","email":"soren.louv@elastic.co"},"sourceCommit":{"committedDate":"2025-03-14T17:14:29Z","message":"[Obs
AI Assistant] Decrease log level to debug (#214598)\n\nMinor logging
change","sha":"5f04c35740823d10570dd4f0ccab262421a1ec21","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-minor","backport:prev-major","Team:Obs
AI Assistant","v9.1.0"],"title":"[Obs AI Assistant] Decrease log level
to
debug","number":214598,"url":"https://github.com/elastic/kibana/pull/214598","mergeCommit":{"message":"[Obs
AI Assistant] Decrease log level to debug (#214598)\n\nMinor logging
change","sha":"5f04c35740823d10570dd4f0ccab262421a1ec21"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/214598","number":214598,"mergeCommit":{"message":"[Obs
AI Assistant] Decrease log level to debug (#214598)\n\nMinor logging
change","sha":"5f04c35740823d10570dd4f0ccab262421a1ec21"}}]}]
BACKPORT-->

Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>
This commit is contained in:
Kibana Machine 2025-03-15 06:04:15 +11:00 committed by GitHub
parent 84d29d7773
commit 4ca5ca502c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -36,7 +36,7 @@ export async function reIndexKnowledgeBase({
// Check if the index was created before version 8.11
const versionThreshold = 8110000; // Version 8.11.0
if (createdVersion >= versionThreshold) {
logger.warn(
logger.debug(
`Knowledge base index "${originalIndex}" was created in version ${createdVersion}, and does not require re-indexing. Semantic text field is already supported. Aborting`
);
return;