Skip to content

Commit 05c697f

Browse files
committed
Make RUST_LOG configurable from docker-compose for ledger and ontology services
1 parent b6f0c68 commit 05c697f

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

compose/ledger/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services:
1212
SECRET: ${SECRET}
1313
PERIODICITY: ${PERIODICITY:-2}
1414
WINDOW: ${WINDOW:-1024}
15+
RUST_LOG: ${RUST_LOG:-INFO}
1516
volumes:
1617
- database:/srv/database
1718

compose/ledger/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ record=$( cat record.scm )
1313
control=$( cat control.scm )
1414
ledger=$( cat ledger.scm )
1515

16-
RUST_LOG=INFO ./journal-sdk -b "($record \"$SECRET\" $control ($ledger \"$SECRET\" #f $WINDOW))" -s "(*step* \"$SECRET\")" -p 80 -c $PERIODICITY -d database
16+
RUST_LOG=$RUST_LOG ./journal-sdk -b "($record \"$SECRET\" $control ($ledger \"$SECRET\" #f $WINDOW))" -s "(*step* \"$SECRET\")" -p 80 -c $PERIODICITY -d database

compose/ontology/docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services:
1212
SECRET: ${SECRET}
1313
PERIODICITY: ${PERIODICITY:-2}
1414
WINDOW: ${WINDOW:-1024}
15+
RUST_LOG: ${RUST_LOG:-info}
1516
volumes:
1617
- database:/srv/database
1718

compose/ontology/run.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ if [ -z "$WINDOW" ]; then
99
WINDOW="#f"
1010
fi
1111

12+
if [ -z "$RUST_LOG" ]; then
13+
RUST_LOG="info"
14+
fi
15+
1216
record=$( cat record.scm )
1317
control=$( cat control.scm )
1418
ledger=$( cat ledger.scm )
1519
ontology=$( cat ontology.scm )
1620

17-
RUST_LOG=info ./journal-sdk -b "($record \"$SECRET\" $control ($ledger \"$SECRET\" #f $WINDOW) $ontology)" -s "(*step* \"$SECRET\")" -p 80 -c $PERIODICITY -d database
21+
RUST_LOG=$RUST_LOG ./journal-sdk -b "($record \"$SECRET\" $control ($ledger \"$SECRET\" #f $WINDOW) $ontology)" -s "(*step* \"$SECRET\")" -p 80 -c $PERIODICITY -d database

0 commit comments

Comments
 (0)