Skip to content

Commit

Permalink
fix: logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dvilelaf committed Jun 8, 2024
1 parent 1412b4b commit 4d1ade0
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/dvilela/agents/tsunami/aea-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ skills:
- valory/transaction_settlement_abci:0.1.0:bafybeic3tccdjypuge2lewtlgprwkbb53lhgsgn7oiwzyrcrrptrbeyote
- valory/registration_abci:0.1.0:bafybeieu7vq3pyns4t5ty6u3sbmpkd7yznpg3rmqifoz3jhy7pmqyg3w6q
- valory/reset_pause_abci:0.1.0:bafybeiameewywqigpupy3u2iwnkfczeiiucue74x2l5lbge74rmw6bgaie
- dvilela/tsunami_abci:0.1.0:bafybeianozldhhpjlsed274azsqbxcqwv2hgpfdup2u5oybb4f3woozdr4
- dvilela/tsunami_chained_abci:0.1.0:bafybeihwlur5s3sqa5zd7oz3r26rht6olczm67tjefxwuljqw7grglw3fy
- dvilela/tsunami_abci:0.1.0:bafybeif4vflp5cvfgkmrmdxt5ohncbdboqsda4ayj77xdw4vmxyivs2usy
- dvilela/tsunami_chained_abci:0.1.0:bafybeicajtkm4ywt2odt6r45koxek2nqji647t53lqwqxcvrevdd5lvmda
default_ledger: ethereum
required_ledgers:
- ethereum
Expand Down
2 changes: 1 addition & 1 deletion packages/dvilela/services/tsunami/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: bafybeibh5bgshii5oqjfuhwmiivfvfqy7fw5pzvarxkpe4qrgivxtc3xym
fingerprint_ignore_patterns: []
agent: dvilela/tsunami:0.1.0:bafybeicsw3ufvtrsj7hekjdahx5vf7zund4bhakwphzv2vvizmv55uescm
agent: dvilela/tsunami:0.1.0:bafybeicxcfnfjcvvlhc3vetjsdk6opi7xtgdo3mw3qlbump74lo3hgso4q
number_of_agents: 1
deployment:
agent:
Expand Down
5 changes: 4 additions & 1 deletion packages/dvilela/skills/tsunami_abci/behaviours.py
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ def get_governance_tweets( # pylint: disable=too-many-locals,too-many-return-st
headers = {
"Accept": "application/json",
}
parameters = {"key": self.params.boardroom_api_key, "status": "active"}
parameters = {"key": self.params.boardroom_api_key, "status": "pending"}

response = yield from self.get_http_response( # type: ignore
method="GET", url=url, headers=headers, parameters=parameters
Expand Down Expand Up @@ -1391,6 +1391,9 @@ def get_governance_tweets( # pylint: disable=too-many-locals,too-many-return-st
closed_proposals = {
k: v for k, v in governance_proposals.items() if k not in active_proposals
}
self.context.logger.info(
f"Got {len(new_proposals)} new proposals and {len(closed_proposals)} closed proposals"
)

# Prepare tweets (new proposals)
for proposal_id, proposal in new_proposals.items():
Expand Down
2 changes: 1 addition & 1 deletion packages/dvilela/skills/tsunami_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: bafybeiaicsttkv5xapta2eqove7si2pyv3zmshkqolluxpnrh3hkulqsqu
behaviours.py: bafybeibjl4ybyheshh6nrmzszxbedfyszrhkpw3nhadm5epnzkdu5yu3ee
behaviours.py: bafybeibxncsrvjjwasc26jlei7cmalk6hver73cnwe6q2girzloqdtngzq
dialogues.py: bafybeidmgjji6zw6wcvhijrxb74batj2kc2lskfuqxv76duv2j7azcqwra
fsm_specification.yaml: bafybeidlfuabsldhezjaovupkvzrtydpcimzz6r56phsi2psrtdzougu4u
handlers.py: bafybeigjy73h3uaroovfuuo3ugffrm3oq6pntz5me7nrbsbiwwjceztj5m
Expand Down
2 changes: 1 addition & 1 deletion packages/dvilela/skills/tsunami_chained_abci/skill.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ skills:
- valory/reset_pause_abci:0.1.0:bafybeiameewywqigpupy3u2iwnkfczeiiucue74x2l5lbge74rmw6bgaie
- valory/transaction_settlement_abci:0.1.0:bafybeic3tccdjypuge2lewtlgprwkbb53lhgsgn7oiwzyrcrrptrbeyote
- valory/termination_abci:0.1.0:bafybeif2zim2de356eo3sipkmoev5emwadpqqzk3huwqarywh4tmqt3vzq
- dvilela/tsunami_abci:0.1.0:bafybeianozldhhpjlsed274azsqbxcqwv2hgpfdup2u5oybb4f3woozdr4
- dvilela/tsunami_abci:0.1.0:bafybeif4vflp5cvfgkmrmdxt5ohncbdboqsda4ayj77xdw4vmxyivs2usy
behaviours:
main:
args: {}
Expand Down
8 changes: 4 additions & 4 deletions packages/packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"connection/dvilela/llama/0.1.0": "bafybeiauzzq2pxmn4brdqgdyxrrikbc5ywjpmetlajyohute5qtnn37aqq",
"connection/valory/twitter/0.1.0": "bafybeihotqawulig3g4a7fosi4pljsjii2neiqxtepd42e2neemhqecfcq",
"connection/dvilela/suno/0.1.0": "bafybeihy2phtjwbz27ntv55wxfk754kp5tjceujzsdbppjafljoydjflhi",
"skill/dvilela/tsunami_abci/0.1.0": "bafybeianozldhhpjlsed274azsqbxcqwv2hgpfdup2u5oybb4f3woozdr4",
"skill/dvilela/tsunami_chained_abci/0.1.0": "bafybeihwlur5s3sqa5zd7oz3r26rht6olczm67tjefxwuljqw7grglw3fy",
"agent/dvilela/tsunami/0.1.0": "bafybeicsw3ufvtrsj7hekjdahx5vf7zund4bhakwphzv2vvizmv55uescm",
"service/dvilela/tsunami/0.1.0": "bafybeic62sab5qchojuznbcf3mtjffqo7id7jvowon743o5jwpsx6de4yi"
"skill/dvilela/tsunami_abci/0.1.0": "bafybeif4vflp5cvfgkmrmdxt5ohncbdboqsda4ayj77xdw4vmxyivs2usy",
"skill/dvilela/tsunami_chained_abci/0.1.0": "bafybeicajtkm4ywt2odt6r45koxek2nqji647t53lqwqxcvrevdd5lvmda",
"agent/dvilela/tsunami/0.1.0": "bafybeicxcfnfjcvvlhc3vetjsdk6opi7xtgdo3mw3qlbump74lo3hgso4q",
"service/dvilela/tsunami/0.1.0": "bafybeieqafdt7zkghqtjnvgi6mbaysmcwym7k6xuhamfktea6ug4scxh34"
},
"third_party": {
"protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi",
Expand Down

0 comments on commit 4d1ade0

Please sign in to comment.