Skip to content

Commit

Permalink
chore: logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dvilelaf committed Aug 10, 2023
1 parent 076f934 commit ddc8cb8
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions packages/packages.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions packages/valory/agents/impact_evaluator/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/services/impact_evaluator/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/skills/impact_evaluator_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion packages/valory/skills/twitter_scoring_abci/behaviours.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/valory/skills/twitter_scoring_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ddc8cb8

Please sign in to comment.