Skip to content

Commit

Permalink
Merge pull request #219 from Uniswap/fix-log
Browse files Browse the repository at this point in the history
fix: log map entries
  • Loading branch information
ConjunctiveNormalForm authored Oct 24, 2023
2 parents f3e8ebc + 44353fd commit 5445051
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/quoters/WebhookQuoter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ export class WebhookQuoter implements Quoter {
const config = await this.circuitBreakerProvider.getConfigurations();
const fillerToConfigMap = new Map(config.map((c) => [c.hash, c]));
if (config) {
this.log.info({ fillerToCMap: fillerToConfigMap, config: config }, `Circuit breaker config used`)
this.log.info({ fillerToCMap: [...fillerToConfigMap.entries()], config: config }, `Circuit breaker config used`)
const enabledEndpoints: WebhookConfiguration[] = [];
endpoints.forEach((e) => {
if (
this.ALLOW_LIST.has(e.hash) ||
(fillerToConfigMap.has(e.hash) && fillerToConfigMap.get(e.hash)?.enabled) ||
!fillerToConfigMap.has(e.hash) // default to allowing fillers not in the config
) {
this.log.info({ endpoint: e }, `Endpoint enabled`)
enabledEndpoints.push(e);
}
});
Expand Down

0 comments on commit 5445051

Please sign in to comment.