feat: output messages to csv

This commit is contained in:
Richard Ramos 2022-06-30 11:11:40 -04:00
parent 4f2db08a75
commit d8a7dcf3a2
3 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View File

@ -34,6 +34,7 @@ status-react-translations/
notarization.log
status-desktop.log
nim_status_client.log
*.csv
# Squish test ================================================================

View File

@ -211,6 +211,12 @@ NIM_PARAMS += -d:DESKTOP_VERSION="$(DESKTOP_VERSION)"
GIT_COMMIT=`git log --pretty=format:'%h' -n 1`
NIM_PARAMS += -d:GIT_COMMIT="$(GIT_COMMIT)"
OUTPUT_CSV ?= false
ifeq ($(OUTPUT_CSV), true)
NIM_PARAMS += -d:output_csv
$(shell touch .update.timestamp)
endif
$(DOTHERSIDE): | deps
echo -e $(BUILD_MSG) "DOtherSide"
+ cd vendor/DOtherSide && \

View File

@ -21,9 +21,11 @@ logScope:
const PATHS = @[PATH_WALLET_ROOT, PATH_EIP_1581, PATH_WHISPER, PATH_DEFAULT_WALLET]
const ACCOUNT_ALREADY_EXISTS_ERROR = "account already exists"
const output_csv {.booldefine.} = false
include utils
type
Service* = ref object of RootObj
fleetConfiguration: FleetConfiguration
@ -486,6 +488,7 @@ proc login*(self: Service, account: AccountDto, password: string): string =
"Port": DEFAULT_TORRENT_CONFIG_PORT
},
"Networks": NETWORKS,
"OutputMessageCSVEnabled": output_csv
}
let response = status_account.login(account.name, account.keyUid, hashedPassword, thumbnailImage,