From ddc8cb83bf017751b30509fab303e82d27f239d0 Mon Sep 17 00:00:00 2001 From: David Vilela Date: Thu, 10 Aug 2023 12:40:20 +0200 Subject: [PATCH] chore: logging --- docs/index.md | 2 +- packages/packages.json | 8 ++++---- packages/valory/agents/impact_evaluator/aea-config.yaml | 4 ++-- packages/valory/services/impact_evaluator/service.yaml | 2 +- packages/valory/skills/impact_evaluator_abci/skill.yaml | 2 +- packages/valory/skills/twitter_scoring_abci/behaviours.py | 4 +++- packages/valory/skills/twitter_scoring_abci/skill.yaml | 2 +- 7 files changed, 13 insertions(+), 11 deletions(-) diff --git a/docs/index.md b/docs/index.md index a76d969d..df3ada01 100644 --- a/docs/index.md +++ b/docs/index.md @@ -31,7 +31,7 @@ In order to run a local demo service based on the IEKit: 2. Fetch the IEKit. ```bash - autonomy fetch valory/impact_evaluator:0.1.0:bafybeib6ww7silcvdavxkn4hleyus2wejmc7cbdgaupsgbzwhdus47qmv4 --service + autonomy fetch valory/impact_evaluator:0.1.0:bafybeiav2ea6ztfhfpjleiivgnkdeosxz4fqmkfuu5l7iwnroapoa7sd3a --service ``` 3. Build the Docker image of the service agents diff --git a/packages/packages.json b/packages/packages.json index 699701f8..85e5ae74 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -1,13 +1,13 @@ { "dev": { - "agent/valory/impact_evaluator/0.1.0": "bafybeigzwwtqhz5qr7o6apq2nlitryrhxcrlfdqatzh3rh3bxeycl6vodm", + "agent/valory/impact_evaluator/0.1.0": "bafybeihgevsp4th3r3cmcv7a7a7hi2fcgiyphaoc2l26nqyqf5xjkfypni", "contract/valory/dynamic_contribution/0.1.0": "bafybeiaapvt7o4s5zpkxjcaplbzw7bhgeeqwtsddzjxmg6bfth6ytlvdiq", - "service/valory/impact_evaluator/0.1.0": "bafybeib6ww7silcvdavxkn4hleyus2wejmc7cbdgaupsgbzwhdus47qmv4", + "service/valory/impact_evaluator/0.1.0": "bafybeiav2ea6ztfhfpjleiivgnkdeosxz4fqmkfuu5l7iwnroapoa7sd3a", "skill/valory/dynamic_nft_abci/0.1.0": "bafybeibqbmo6erzdc7x4lroezhtzrxtpcmbjdxcraazxxxpvjfcgdrmwsi", - "skill/valory/twitter_scoring_abci/0.1.0": "bafybeihwlgx5djfpy5hoc2nn4cn3rafr7yf4ozy2licw23jyfblwoie66q", + "skill/valory/twitter_scoring_abci/0.1.0": "bafybeiejp5kp3yttntukfiwjbvah5kvldxruugrhsmigmtrfdlkxqumgui", "skill/valory/ceramic_read_abci/0.1.0": "bafybeib36m6fi5swu43s3amtbk7w5rfie2gvzgw3xhxd7yfnka4kpcegme", "skill/valory/ceramic_write_abci/0.1.0": "bafybeifdjb2iisvtgwo44xoddhrbgqehbis6tbjdktuhh6ehwm5bnuee74", - "skill/valory/impact_evaluator_abci/0.1.0": "bafybeiehrwzfi44tu26rtdu5jvo6k5koqsoggrrgasxm67gdpncdmy6kfu", + "skill/valory/impact_evaluator_abci/0.1.0": "bafybeiekanstkrkpqdcwsrg5jtg4pirizzivu3u3m66pcgqmgx43yxedzu", "skill/valory/generic_scoring_abci/0.1.0": "bafybeih7s3cnfr2lwbrbdhp2tjayjnqjlaakbdvurs5faxq4ctjkj4rgki", "protocol/valory/twitter/0.1.0": "bafybeib4eyf7qbs7kdntqzhwqsaaj4o2mzcokcztaza6qgwt7sbxgkqu2m", "protocol/valory/llm/1.0.0": "bafybeigqybmg75vsxexmp57hkms7lkp7iwpf54r7wpygizxryvrhfqqpb4", diff --git a/packages/valory/agents/impact_evaluator/aea-config.yaml b/packages/valory/agents/impact_evaluator/aea-config.yaml index 55796423..0d0b2436 100644 --- a/packages/valory/agents/impact_evaluator/aea-config.yaml +++ b/packages/valory/agents/impact_evaluator/aea-config.yaml @@ -42,9 +42,9 @@ protocols: skills: - valory/abstract_abci:0.1.0:bafybeih3bwx5apteinnoxts7sqmjlskntdbo7vvnmdbs5noo2pv76by7fu - valory/abstract_round_abci:0.1.0:bafybeibqpzbklnljvtc67yon4ciijxj75d7vazm7rurcvbbfnk6jtudukm -- valory/impact_evaluator_abci:0.1.0:bafybeiehrwzfi44tu26rtdu5jvo6k5koqsoggrrgasxm67gdpncdmy6kfu +- valory/impact_evaluator_abci:0.1.0:bafybeiekanstkrkpqdcwsrg5jtg4pirizzivu3u3m66pcgqmgx43yxedzu - valory/generic_scoring_abci:0.1.0:bafybeih7s3cnfr2lwbrbdhp2tjayjnqjlaakbdvurs5faxq4ctjkj4rgki -- valory/twitter_scoring_abci:0.1.0:bafybeihwlgx5djfpy5hoc2nn4cn3rafr7yf4ozy2licw23jyfblwoie66q +- valory/twitter_scoring_abci:0.1.0:bafybeiejp5kp3yttntukfiwjbvah5kvldxruugrhsmigmtrfdlkxqumgui - valory/ceramic_read_abci:0.1.0:bafybeib36m6fi5swu43s3amtbk7w5rfie2gvzgw3xhxd7yfnka4kpcegme - valory/ceramic_write_abci:0.1.0:bafybeifdjb2iisvtgwo44xoddhrbgqehbis6tbjdktuhh6ehwm5bnuee74 - valory/dynamic_nft_abci:0.1.0:bafybeibqbmo6erzdc7x4lroezhtzrxtpcmbjdxcraazxxxpvjfcgdrmwsi diff --git a/packages/valory/services/impact_evaluator/service.yaml b/packages/valory/services/impact_evaluator/service.yaml index da760551..79777509 100644 --- a/packages/valory/services/impact_evaluator/service.yaml +++ b/packages/valory/services/impact_evaluator/service.yaml @@ -8,7 +8,7 @@ license: Apache-2.0 fingerprint: README.md: bafybeign56hilwuoa6bgos3uqabss4gew4vadkik7vhj3ucpqw6nxtqtpe fingerprint_ignore_patterns: [] -agent: valory/impact_evaluator:0.1.0:bafybeigzwwtqhz5qr7o6apq2nlitryrhxcrlfdqatzh3rh3bxeycl6vodm +agent: valory/impact_evaluator:0.1.0:bafybeihgevsp4th3r3cmcv7a7a7hi2fcgiyphaoc2l26nqyqf5xjkfypni number_of_agents: 4 deployment: agent: diff --git a/packages/valory/skills/impact_evaluator_abci/skill.yaml b/packages/valory/skills/impact_evaluator_abci/skill.yaml index 67104239..e48616ec 100644 --- a/packages/valory/skills/impact_evaluator_abci/skill.yaml +++ b/packages/valory/skills/impact_evaluator_abci/skill.yaml @@ -26,7 +26,7 @@ skills: - valory/abstract_round_abci:0.1.0:bafybeibqpzbklnljvtc67yon4ciijxj75d7vazm7rurcvbbfnk6jtudukm - valory/ceramic_read_abci:0.1.0:bafybeib36m6fi5swu43s3amtbk7w5rfie2gvzgw3xhxd7yfnka4kpcegme - valory/generic_scoring_abci:0.1.0:bafybeih7s3cnfr2lwbrbdhp2tjayjnqjlaakbdvurs5faxq4ctjkj4rgki -- valory/twitter_scoring_abci:0.1.0:bafybeihwlgx5djfpy5hoc2nn4cn3rafr7yf4ozy2licw23jyfblwoie66q +- valory/twitter_scoring_abci:0.1.0:bafybeiejp5kp3yttntukfiwjbvah5kvldxruugrhsmigmtrfdlkxqumgui - valory/ceramic_write_abci:0.1.0:bafybeifdjb2iisvtgwo44xoddhrbgqehbis6tbjdktuhh6ehwm5bnuee74 - valory/dynamic_nft_abci:0.1.0:bafybeibqbmo6erzdc7x4lroezhtzrxtpcmbjdxcraazxxxpvjfcgdrmwsi - valory/registration_abci:0.1.0:bafybeia25gpusnkakb2dp4heqkwtuftbc2apppq3i4bds6sphltsovgzvi diff --git a/packages/valory/skills/twitter_scoring_abci/behaviours.py b/packages/valory/skills/twitter_scoring_abci/behaviours.py index 90d9e422..c0921553 100644 --- a/packages/valory/skills/twitter_scoring_abci/behaviours.py +++ b/packages/valory/skills/twitter_scoring_abci/behaviours.py @@ -487,7 +487,9 @@ def update_ceramic_db(self) -> Dict: current_period = ceramic_db.data["module_data"]["twitter"]["current_period"] is_period_changed = today != current_period if is_period_changed: - self.context.logger.info("Scoring period has changed") + self.context.logger.info( + f"Scoring period has changed from {current_period} to {today}" + ) period_reset_users = set() max_points_per_period = ceramic_db.data["module_data"]["twitter"][ "max_points_per_period" diff --git a/packages/valory/skills/twitter_scoring_abci/skill.yaml b/packages/valory/skills/twitter_scoring_abci/skill.yaml index fd53d7ed..146bca98 100644 --- a/packages/valory/skills/twitter_scoring_abci/skill.yaml +++ b/packages/valory/skills/twitter_scoring_abci/skill.yaml @@ -8,7 +8,7 @@ license: Apache-2.0 aea_version: '>=1.0.0, <2.0.0' fingerprint: __init__.py: bafybeifudgakkjoyahuewp2o4gvqayw7nsgpyxw2ayrpgmzexurh2xomaq - behaviours.py: bafybeiagszpultdlmq264gui4zrmxpw67twfdxlusqbe4ce3pkzj77mc7y + behaviours.py: bafybeibbyneeup7elxcd5exunwlw7n244c2qikykbby7ehj4qauvsgfqym ceramic_db.py: bafybeicwkoucm5tc3nzgsoqzozpy6mbfntmtzbw3hu2eqrwwqrfshenqoy dialogues.py: bafybeibdqzn37hbo2cq4skww4uh2zvvsjyaxxvdhxisefbdvmjp7rh53si fsm_specification.yaml: bafybeiftbrcjeqy2322ub5oihkrsmohgp4qpkuokfoirt4rg4ymwu5wrei