chore: add chronicles configuration to output logs to a file

This commit is contained in:
Richard Ramos 2021-06-29 14:42:18 -04:00 committed by Iuri Matias
parent 60b6390581
commit 5001f36e86
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@ -29,3 +29,4 @@ resources.qrc
status-react-translations/ status-react-translations/
/.update.timestamp /.update.timestamp
notarization.log notarization.log
status-desktop.log

View File

@ -220,6 +220,9 @@ DEFAULT_TOKEN := 220a1abb4b6943a093c35d0ce4fb0732
INFURA_TOKEN ?= $(DEFAULT_TOKEN) INFURA_TOKEN ?= $(DEFAULT_TOKEN)
NIM_PARAMS += -d:INFURA_TOKEN:"$(INFURA_TOKEN)" NIM_PARAMS += -d:INFURA_TOKEN:"$(INFURA_TOKEN)"
# generate a status-desktop.log file with chronicles output. This file will be truncated each time the app starts
NIM_PARAMS += -d:chronicles_sinks="textlines[stdout],textlines[nocolors,file(status-desktop.log,truncate)]"
RESOURCES_LAYOUT := -d:development RESOURCES_LAYOUT := -d:development
nim_status_client: NIM_PARAMS += $(RESOURCES_LAYOUT) nim_status_client: NIM_PARAMS += $(RESOURCES_LAYOUT)