Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
Fix format error.
Browse files Browse the repository at this point in the history
Bug proof in this log line:

```
2022-03-15 02:28:31.311 1 [info] <0.1844.0>@miner_poc_denylist:handle_info:{109,29} FORMAT ERROR: "new denylist version appeared: ~s have ~s" [2022031101,0]
```

Terms are integers, not strings.
  • Loading branch information
ke6jjj committed Mar 15, 2022
1 parent 7f78cf2 commit fc7501f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poc/miner_poc_denylist.erl
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ handle_info(check, #state{type=github_release, url=URL, keys=Keys, version=Versi
lager:notice("denylist version has regressed from ~s to ~s, ignoring", [Version, NewVersion]),
{noreply, schedule_check(State#state{etag=proplists:get_value("etag", Headers)})};
NewVersion when NewVersion > Version ->
lager:info("new denylist version appeared: ~s have ~s", [NewVersion, Version]),
lager:info("new denylist version appeared: ~p have ~p", [NewVersion, Version]),
case maps:get(<<"assets">>, Json, undefined) of
undefined ->
lager:notice("no zipball_url for release ~p", [NewVersion]),
Expand Down

0 comments on commit fc7501f

Please sign in to comment.