Skip to content

Commit 81bd3f4

Browse files
committed
Updates for grisp_connect 2.0.0
1 parent f6980f7 commit 81bd3f4

File tree

5 files changed

+51
-34
lines changed

5 files changed

+51
-34
lines changed

.github/workflows/erlang.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
otp: ['27.1']
15+
otp: ['27.2.4']
1616
rebar3: ['3.24.0']
1717
steps:
1818
- uses: erlef/setup-beam@v1

config/sys.config

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,39 @@
11
[
22
{kernel, [
3-
% Disable 'default' handler (which buffers all log events in logger).
4-
{logger, [{handler, default, undefined}]}
5-
]},
6-
{grisp_connect, [
3+
{logger_level, notice},
74
{logger, [
8-
% Enable the grisp_connect handler as default,
9-
% so that it will receive all events from boot
10-
{handler,
11-
default, % name
12-
grisp_connect_logger_bin, % module
13-
#{
14-
formatter => {grisp_connect_logger_bin, #{
15-
% To see logs printed on the USB serial appoint a logger
16-
% formatter module of your choice and set the stdout
17-
% configuration stdout => {Formatter, FormatterConfig}
18-
stdout => {logger_formatter, #{}}
19-
}}
5+
{handler, default, logger_std_h, #{
6+
level => notice,
7+
filter_default => log,
8+
filters => [
9+
% Filter out supervisor progress reports so TLS certificates
10+
% are not swamping the console if level is set to info...
11+
{disable_progress, {fun logger_filters:progress/2, stop}}
12+
]
13+
}},
14+
{handler, grisp_connect_log_handler, grisp_connect_logger_bin, #{
15+
level => notice,
16+
filter_default => log,
17+
formatter => {grisp_connect_logger_bin, #{}},
18+
filters => [
19+
% Filter out supervisor progress reports so TLS certificates
20+
% are not swamping grisp.io if level is set to info...
21+
{disable_progress, {fun logger_filters:progress/2, stop}}
22+
]
2023
}
2124
}
2225
]}
2326
]},
27+
{grisp_connect, [
28+
{ntp, true},
29+
% Disable the log handler defined in grisp_connect application default
30+
% configuration, as it was explicitly started in kernel configuration
31+
% in order to catch the log entries before grisp_connect is started.
32+
{logger, []}
33+
]},
2434
{grisp_updater, [
35+
{signature_check, false},
36+
{signature_certificates, {priv, grisp_demo, "certificates/updates"}},
2537
{system, {grisp_updater_grisp2, #{}}},
2638
{sources, [
2739
{grisp_updater_tarball, #{}},

grisp/grisp2/common/deploy/files/etc/hosts

Whitespace-only changes.

rebar.config

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
% {toolchain, [{directory, "..."}]}
1818
% ]},
1919
{deploy, [
20-
{pre_script, "mkdir -p _deploy"},
21-
{destination, "_deploy"}
20+
{pre_script, "rm -rf /Volumes/GRISP/*"},
21+
{destination, "/Volumes/GRISP"},
22+
{post_script, "diskutil umount /Volumes/GRISP"}
23+
2224
]}
2325
]}.
2426

rebar.lock

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
{git,"https://github.com/erlang/epmd",
66
{ref,"4d1a595b9d5c32fc0e55f462da381de62de23bf0"}},
77
0},
8-
{<<"grisp">>,{pkg,<<"grisp">>,<<"2.7.0">>},1},
9-
{<<"grisp_connect">>,{pkg,<<"grisp_connect">>,<<"1.1.0">>},0},
10-
{<<"grisp_cryptoauth">>,{pkg,<<"grisp_cryptoauth">>,<<"2.4.0">>},1},
11-
{<<"grisp_updater">>,{pkg,<<"grisp_updater">>,<<"2.1.0">>},1},
12-
{<<"grisp_updater_grisp2">>,{pkg,<<"grisp_updater_grisp2">>,<<"0.2.0">>},0},
8+
{<<"grisp">>,{pkg,<<"grisp">>,<<"2.8.0">>},1},
9+
{<<"grisp_connect">>,{pkg,<<"grisp_connect">>,<<"2.0.0">>},0},
10+
{<<"grisp_cryptoauth">>,{pkg,<<"grisp_cryptoauth">>,<<"2.4.1">>},1},
11+
{<<"grisp_updater">>,{pkg,<<"grisp_updater">>,<<"2.1.1">>},1},
12+
{<<"grisp_updater_grisp2">>,{pkg,<<"grisp_updater_grisp2">>,<<"0.2.1">>},0},
1313
{<<"gun">>,{pkg,<<"gun">>,<<"2.1.0">>},1},
14+
{<<"jarl">>,{pkg,<<"jarl">>,<<"1.0.1">>},1},
1415
{<<"jsx">>,{pkg,<<"jsx">>,<<"3.1.0">>},1},
1516
{<<"mapz">>,{pkg,<<"mapz">>,<<"2.4.0">>},2},
1617
{<<"quickrand">>,{pkg,<<"quickrand">>,<<"2.0.7">>},3},
@@ -20,12 +21,13 @@
2021
{pkg_hash,[
2122
{<<"certifi">>, <<"E52BE248590050B2DD33B0BB274B56678F9068E67805DCA8AA8B1CCDB016BBF6">>},
2223
{<<"cowlib">>, <<"DB8F7505D8332D98EF50A3EF34B34C1AFDDEC7506E4EE4DD4A3A266285D282CA">>},
23-
{<<"grisp">>, <<"66EC41E78738A7772F661B2B04102177C3CA26FEA8C049EABCA8BD0CCD0C721B">>},
24-
{<<"grisp_connect">>, <<"84BC68029950C3CC9948ED95D36C05B48DDD0544635C74C697DDAA40225BEBF0">>},
25-
{<<"grisp_cryptoauth">>, <<"60773DFCB597893A1E98BFE2974A74C277D9FF6CE16BD918BFD906D43AAB86C0">>},
26-
{<<"grisp_updater">>, <<"9D826A1EA6EA72F084780CD28DCC3421B90256BDEF73FE53451ECE135CEE57AD">>},
27-
{<<"grisp_updater_grisp2">>, <<"9A175CF3B4D68D12FD9A601397F82203B57FCFCBAAE366D633327F4BB9E5A914">>},
24+
{<<"grisp">>, <<"E0B7D4C3464702DBD62A867EDE76488226B0772B29DF7DBAE4E08E474F2B81F5">>},
25+
{<<"grisp_connect">>, <<"C1D13AE84D17CB19425DB941337085FA4E654EE126C1B5C60F8E552EE841D5A5">>},
26+
{<<"grisp_cryptoauth">>, <<"AA623B135F000E03DBA0FCBB64C08B5F31E29B1DAC2B4E7A106BAFCA3878141C">>},
27+
{<<"grisp_updater">>, <<"471744D14F756ED0DF22414EA752A9E943EC0CB996E1596F708DCA52D2F9C527">>},
28+
{<<"grisp_updater_grisp2">>, <<"15E0688465C9CD7FE24A4CF47E48FD939B51B175EC74BDD4BF8B33417E8CACC3">>},
2829
{<<"gun">>, <<"B4E4CBBF3026D21981C447E9E7CA856766046EFF693720BA43114D7F5DE36E87">>},
30+
{<<"jarl">>, <<"B92ECC182498C33E9ED31DF7A0EF4BECAFAC0E1CB1C118C618E662BCC45CE7E9">>},
2931
{<<"jsx">>, <<"D12516BAA0BB23A59BB35DCCAF02A1BD08243FCBB9EFE24F2D9D056CCFF71268">>},
3032
{<<"mapz">>, <<"77A8E38B69BAB16C5D3EBD44E6C619F8AF1F1598B0CAAE301D266605A0865756">>},
3133
{<<"quickrand">>, <<"D2BD76676A446E6A058D678444B7FDA1387B813710D1AF6D6E29BB92186C8820">>},
@@ -34,12 +36,13 @@
3436
{pkg_hash_ext,[
3537
{<<"certifi">>, <<"8F3D9533A0F06070AFDFD5D596B32E21C6580667A492891851B0E2737BC507A1">>},
3638
{<<"cowlib">>, <<"E1E1284DC3FC030A64B1AD0D8382AE7E99DA46C3246B815318A4B848873800A4">>},
37-
{<<"grisp">>, <<"4895B22DAA820B7671923FC137163E4F39A59A97005E2E48F1B9FE38E39069E0">>},
38-
{<<"grisp_connect">>, <<"CF3082AB003659E9010B04AF1A6C94AA7D50C351D7BD5C3D544BA08EF099EB12">>},
39-
{<<"grisp_cryptoauth">>, <<"D9BD51BC877986404FCF6DB1E3DF196C919BD6F55398FA03262D1C4323410AB9">>},
40-
{<<"grisp_updater">>, <<"C092090DB0CC6D82432732BD9536D63C2DA7C4AF477EFC2EE3FACABC15F8528F">>},
41-
{<<"grisp_updater_grisp2">>, <<"E52A6484BA9F17309DBB424A7C2AAF30D854F79A03F47DFAF57EF6D87A531B74">>},
39+
{<<"grisp">>, <<"4BF7D6E31B03884C13402694D8CDC9B5ECADB53EA1B405453581FD2248D38928">>},
40+
{<<"grisp_connect">>, <<"C5D21F2CC998688F5217FD4684F4345718F8685B5015B1CE0079A3E8E44AFD42">>},
41+
{<<"grisp_cryptoauth">>, <<"A3B997EB54C6FC96B9FFCBB6207F453CD28CD86B4B44D4A6DE703174B4AAE065">>},
42+
{<<"grisp_updater">>, <<"00B114255B84F85B71E95C5BD05C42D4C2F64839819DF3BA78B1FB6F2AB01A6E">>},
43+
{<<"grisp_updater_grisp2">>, <<"4927ECA45BC98E7D49050737C6885E7C5CD86CD634317FE4B14BC1EBE9F843C1">>},
4244
{<<"gun">>, <<"52FC7FC246BFC3B00E01AEA1C2854C70A366348574AB50C57DFE796D24A0101D">>},
45+
{<<"jarl">>, <<"6786787231E0E966BB01B30EEFEC353D6760F5C490B419A126726AFB46BB1437">>},
4346
{<<"jsx">>, <<"0C5CC8FDC11B53CC25CF65AC6705AD39E54ECC56D1C22E4ADB8F5A53FB9427F3">>},
4447
{<<"mapz">>, <<"4B68DF5CF0522E0D6545DF7B681BC052865CDB78405AD4CC9C55FE45EE7B25BE">>},
4548
{<<"quickrand">>, <<"B8ACBF89A224BC217C3070CA8BEBC6EB236DBE7F9767993B274084EA044D35F0">>},

0 commit comments

Comments
 (0)