Skip to content

Commit 9350b6a

Browse files
committed
Log a notice of deprecated query format being used.
1 parent 1043611 commit 9350b6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/IndexRotator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public function getSecondaryIndexes(\DateTime $olderThan = null)
191191
// This section is to support deprecated feature set for ES 1.x.
192192
// It may be removed in future versions of this library when ES 1.x is sufficiently unsupported.
193193
if (!$this->doesSupportCombinedQueryFilter()) {
194+
$this->logger->notice('Using deprecated query format due to elasticsearch version <= 1.x.');
194195
unset($params['body']['query']['bool']['filter']);
195196
$params['body']['filter']['range']['timestamp']['lt'] = $olderThan->format('U');
196197
}

0 commit comments

Comments
 (0)