Skip to content

Commit 3602556

Browse files
committed
update README with --logs-folder option
1 parent d8dbf9e commit 3602556

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

README.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@
3535

3636
# BSP Agent
3737

38-
* [Introduction](#agent_intro)
39-
* [Resources](#agent_resources)
40-
* [Architecture](#agent_arch)
41-
* [Block-Replica](#agent_block)
42-
* [State-Specimen](#state_specimen)
43-
* [Environment](#environment)
44-
* [Build & Run](#build_run)
45-
* [Flag Definitions](#flag_definitions)
46-
* [Docker](#docker)
47-
* [Scripts](#scripts)
48-
* [Inspect](#inspect)
49-
* [Contributing](./docs/CONTRIBUTING.md)
38+
- [BSP Agent](#bsp-agent)
39+
- [<span id="agent_intro">Introduction</span>](#introduction)
40+
- [<span id="agent_resources">Resources</span>](#resources)
41+
- [<span id="agent_arch">Architecture</span>](#architecture)
42+
- [<span id="agent_block">Block-replica</span>](#block-replica)
43+
- [<span id="state_specimen">State-specimen</span>](#state-specimen)
44+
- [<span id="environment">Environment</span>](#environment)
45+
- [<span id="build_run">Build & Run</span>](#build--run)
46+
- [<span id="flag_definitions">Flag definitions</span>](#flag-definitions)
47+
- [<span id="docker">Docker</span>](#docker)
48+
- [<span id="scripts">Scripts</span>](#scripts)
49+
- [<span id="inspect">Inspect</span>](#inspect)
5050

5151
## <span id="agent_intro">Introduction</span>
5252

@@ -206,7 +206,8 @@ go run ./cmd/bspagent/*.go \
206206
--replica-bucket="<covalenthq-geth-block-replica-bucket>" \
207207
--segment-length=1 \
208208
--proof-chain-address="0xe9048412727c96f1044c78CffA45BB2311aE1F1D" \
209-
--consumer-timeout=80
209+
--consumer-timeout=80 \
210+
--logs-folder ./logs/
210211
```
211212

212213
Or update the Makefile with the correct --gcp-svc-account, --replica-bucket & --proof-chain-address and run with the following.
@@ -217,7 +218,7 @@ Or update the Makefile with the correct --gcp-svc-account, --replica-bucket & --
217218

218219
### <span id="flag_definitions">Flag definitions</span>
219220

220-
--redis-url - this flag tells the BSP agent where to find the BSP messages, the stream topic key `replication` and the consumer group name with the field after "#" that in this case is `replicate`, additionally one can provide a password to the redis instance here but we recommend that by adding the line below to the .envrc
221+
`--redis-url` - this flag tells the BSP agent where to find the BSP messages, the stream topic key `replication` and the consumer group name with the field after "#" that in this case is `replicate`, additionally one can provide a password to the redis instance here but we recommend that by adding the line below to the .envrc
221222

222223
```env
223224
export REDIS_PWD=your-redis-pwd
@@ -237,6 +238,8 @@ export REDIS_PWD=your-redis-pwd
237238

238239
`--consumer-timeout` - specifies in how many seconds the BSP agent stops waiting for new messages from the redis pending queue for decode, pack, encode, proof, store and upload.
239240

241+
`--logs-folder` - specifies the location (folder) where the log files have to be placed. In case of error (like permission errors), the logs are not recorded in files.
242+
240243
## <span id="docker">Docker</span>
241244

242245
Please install [docker and docker-compose](https://docs.docker.com/compose/install/).

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ require (
2020
github.com/satori/go.uuid v1.2.0
2121
github.com/sirupsen/logrus v1.8.1
2222
github.com/ubiq/go-ubiq v3.0.1+incompatible
23+
golang.org/x/sys v0.0.0-20220209214540-3681064d5158
2324
google.golang.org/api v0.70.0
2425
gopkg.in/avro.v0 v0.0.0-20171217001914-a730b5802183
2526
gopkg.in/natefinch/lumberjack.v2 v2.0.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,8 @@ golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBc
724724
golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
725725
golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
726726
golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
727+
golang.org/x/sys v0.0.0-20220318055525-2edf467146b5 h1:saXMvIOKvRFwbOMicHXr0B1uwoxq9dGmLe5ExMES6c4=
728+
golang.org/x/sys v0.0.0-20220318055525-2edf467146b5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
727729
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
728730
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
729731
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=

0 commit comments

Comments
 (0)