From 905e09af00c0a27c37cfbbfedd29049e4c1a1c38 Mon Sep 17 00:00:00 2001 From: Izumi Hoshino Date: Mon, 19 Aug 2024 20:14:43 +0900 Subject: [PATCH 1/2] For the log which is output when `success` property in API response is `false`, the log level is now `INFO` instead of `ERROR` --- CHANGELOG.md | 8 +++++++- src/rpc/index.ts | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2096e96..98aad5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,12 @@ # Changelog +## [14.2.2] +### Changed +- For the log which is output when `success` property in API response is `false`, the log level is now `INFO` instead of `ERROR`. + ## [14.2.1] ### Changed -- [`daemon.connect()`](./src/daemon/README.md#daemonconnecturl-string-timeoutms-number) now returns a rejected promise on failure to connect instead of throwing an uncaught exception +- [`daemon.connect()`](./src/daemon/README.md#daemonconnecturl-string-timeoutms-number) now returns a rejected promise on failure instead of throwing an uncaught exception - [`daemon.connect()`](./src/daemon/README.md#daemonconnecturl-string-timeoutms-number) now accepts connection timeout in milliseconds. ## [14.2.0] @@ -1638,6 +1642,8 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data); Initial release. +[14.2.2]: https://github.com/Chia-Mine/chia-agent/compare/v14.2.1...v14.2.2 +[14.2.1]: https://github.com/Chia-Mine/chia-agent/compare/v14.2.0...v14.2.1 [14.2.0]: https://github.com/Chia-Mine/chia-agent/compare/v14.1.0...v14.2.0 [14.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v14.0.0...v14.1.0 [14.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v13.2.0...v14.0.0 diff --git a/src/rpc/index.ts b/src/rpc/index.ts index bd77ffc..928eee7 100644 --- a/src/rpc/index.ts +++ b/src/rpc/index.ts @@ -346,7 +346,7 @@ export class RPCAgent implements APIAgent { return reject(new Error(`Response has no 'success' property: ${serializedData}`)); } if(!d.success){ - getLogger().error(`API failure: ${d.error}`); + getLogger().info(`API failure: ${d.error}`); return reject(d); } return resolve(d); From aa8317b65a3f8e3921fa00a8a63c86683ce98094 Mon Sep 17 00:00:00 2001 From: Izumi Hoshino Date: Mon, 19 Aug 2024 20:15:05 +0900 Subject: [PATCH 2/2] Set version to 14.2.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 200ada1..187f64f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "chia-agent", - "version": "14.2.1", + "version": "14.2.2", "author": "ChiaMineJP ", "description": "chia rpc/websocket client library", "license": "MIT",