Improve log level in proxy QueryTask (#16234)

Use warn instead of debug in error case

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/16247/head
congqixia 2022-03-28 23:11:26 +08:00 committed by GitHub
parent a77dd1034c
commit 2c03287e79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1598,8 +1598,8 @@ func (qt *queryTask) PreExecute(ctx context.Context) error {
collectionName := qt.query.CollectionName
if err := validateCollectionName(qt.query.CollectionName); err != nil {
log.Debug("Invalid collection name.", zap.Any("collectionName", collectionName),
zap.Any("requestID", qt.Base.MsgID), zap.Any("requestType", "query"))
log.Warn("Invalid collection name.", zap.String("collectionName", collectionName),
zap.Int64("requestID", qt.Base.MsgID), zap.String("requestType", "query"))
return err
}
log.Info("Validate collection name.", zap.Any("collectionName", collectionName),