Feature/improve error logs in scraper configuration test (#3730)

* Improve error logs

* Update changelog
This commit is contained in:
Thomas Kaul 2024-09-05 18:21:32 +02:00 committed by GitHub
parent 7ea9061852
commit fb44933c9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View File

@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Changed the data format of the environment variable `CACHE_QUOTES_TTL` from seconds to milliseconds - Changed the data format of the environment variable `CACHE_QUOTES_TTL` from seconds to milliseconds
- Changed the data format of the environment variable `CACHE_TTL` from seconds to milliseconds - Changed the data format of the environment variable `CACHE_TTL` from seconds to milliseconds
- Removed the environment variable `MAX_ITEM_IN_CACHE` - Removed the environment variable `MAX_ITEM_IN_CACHE`
- Improved the error logs of the scraper configuration test in the asset profile details dialog of the admin control
- Improved the language localization for Polish (`pl`) - Improved the language localization for Polish (`pl`)
- Migrated from `cache-manager-redis-store` to `cache-manager-redis-yet` - Migrated from `cache-manager-redis-store` to `cache-manager-redis-yet`
- Upgraded `cache-manager` from version `3.4.3` to `5.7.6` - Upgraded `cache-manager` from version `3.4.3` to `5.7.6`

View File

@ -239,9 +239,11 @@ export class AdminController {
return { price }; return { price };
} }
throw new Error('Could not parse the current market price'); throw new Error(
`Could not parse the current market price for ${symbol} (${dataSource})`
);
} catch (error) { } catch (error) {
Logger.error(error); Logger.error(error, 'AdminController');
throw new HttpException(error.message, StatusCodes.BAD_REQUEST); throw new HttpException(error.message, StatusCodes.BAD_REQUEST);
} }