Skip to content

Commit

Permalink
Temporarily point to producer docs in warning
Browse files Browse the repository at this point in the history
This will be replaced by a link to the migration guide once available
  • Loading branch information
Nevon committed May 5, 2022
1 parent 6e0943f commit 15ba521
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const warnOfDefaultPartitioner = once(logger => {
if (process.env.KAFKAJS_NO_PARTITIONER_WARNING == null) {
logger.warn(
`KafkaJS v2.0.0 switched default partitioner. To retain the same partitioning behavior as in previous versions, create the producer with the option "createPartitioner: Partitioners.LegacyPartitioner". See ${websiteUrl(
'/docs/2.0.0/migration-guide-v2.0.0'
'docs/producing',
'a-name-custom-partitioner-a-custom-partitioner'
)} for details. Silence this warning by setting the environment variable "KAFKAJS_NO_PARTITIONER_WARNING=1"`
)
}
Expand Down

0 comments on commit 15ba521

Please sign in to comment.