diff --git a/CHANGELOG.md b/CHANGELOG.md index 98cccb8b..8d0b19eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.10.1] 2021-09-24 + +- Add `DataLoader::enable_all_cache` and `DataLoader::enable_cache` methods. [#642](https://github.com/async-graphql/async-graphql/issues/642) +- Change the execution order of `chain` and `race` guards. [#614](https://github.com/async-graphql/async-graphql/issues/614) +- Change log level from `error` to `info`. [#518](https://github.com/async-graphql/async-graphql/issues/518) + ## [2.10.0] 2021-09-17 - Add support for `graphql-ws` pings. [#635](https://github.com/async-graphql/async-graphql/issues/635) diff --git a/src/extensions/logger.rs b/src/extensions/logger.rs index c78275a8..de5d8115 100644 --- a/src/extensions/logger.rs +++ b/src/extensions/logger.rs @@ -68,12 +68,12 @@ impl Extension for LoggerExtension { } } - log::error!( + log::info!( target: "async-graphql", "[Error] path={} message={}", path, err.message, ); } else { - log::error!( + log::info!( target: "async-graphql", "[Error] message={}", err.message, ); diff --git a/src/extensions/tracing.rs b/src/extensions/tracing.rs index 48c5dfde..49382f2a 100644 --- a/src/extensions/tracing.rs +++ b/src/extensions/tracing.rs @@ -143,7 +143,7 @@ impl Extension for TracingExtension { ); next.run(ctx, info) .map_err(|err| { - tracinglib::error!(target: "async_graphql::graphql", error = %err.message); + tracinglib::info!(target: "async_graphql::graphql", error = %err.message); err }) .instrument(span)