KarmaGYZ closed pull request #7469: [hotfix][docs] Correct the usage of LOG.error URL: https://github.com/apache/flink/pull/7469
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/docs/monitoring/logging.md b/docs/monitoring/logging.md index 737ddb9de30..b9b918c29bc 100644 --- a/docs/monitoring/logging.md +++ b/docs/monitoring/logging.md @@ -93,7 +93,7 @@ Placeholders can also be used in conjunction with exceptions which shall be logg {% highlight java %} catch(Exception exception){ - LOG.error("An {} occurred.", "error", exception); + LOG.error("An {} occurred.", exception.getMessage()); } {% endhighlight %} ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services