mirror of
https://github.com/status-im/status-desktop.git
synced 2025-03-04 00:11:12 +00:00
feat: keycard log to file and only in development (#17363)
This commit is contained in:
parent
f024053e27
commit
e8c69fa365
@ -113,7 +113,11 @@ QtObject:
|
||||
error "error receiving a keycard signal", err=e.msg, data = signal
|
||||
|
||||
proc asyncStart(self: Service, storageDir: string) =
|
||||
let params = %*{"storageFilePath": storageDir}
|
||||
let params = %*{
|
||||
"storageFilePath": storageDir,
|
||||
"logEnabled": KEYCARD_LOGS_ENABLED,
|
||||
"logFilePath": KEYCARD_LOG_FILE_PATH,
|
||||
}
|
||||
self.asyncCallRPC(KeycardAction.Start, params, proc (responseObj: JsonNode, err: string) =
|
||||
if err.len > 0:
|
||||
error "error starting keycard", err=err
|
||||
|
@ -31,7 +31,9 @@ let
|
||||
ROOTKEYSTOREDIR* = joinPath(baseDir, "data", "keystore")
|
||||
TMPDIR* = joinPath(baseDir, "tmp") & sep
|
||||
LOGDIR* = joinPath(baseDir, "logs") & sep
|
||||
KEYCARDPAIRINGDATAFILE* = joinPath(baseDir, "data", "keycard", "pairings.json")
|
||||
KEYCARD_DATA_DIR* = joinPath(baseDir, "data", "keycard")
|
||||
KEYCARD_LOG_FILE_PATH* = joinPath(KEYCARD_DATA_DIR, "keycard.log")
|
||||
KEYCARDPAIRINGDATAFILE* = joinPath(KEYCARD_DATA_DIR, "pairings.json")
|
||||
|
||||
# runtime variables
|
||||
TEST_MODE_ENABLED* = desktopConfig.testMode
|
||||
@ -73,6 +75,7 @@ let
|
||||
SENTRY_DSN_STATUS_GO* = BUILD_SENTRY_DSN_STATUS_GO
|
||||
SENTRY_DSN_STATUS_GO_DESKTOP* = BUILD_SENTRY_DSN_STATUS_DESKTOP
|
||||
API_LOGGING* = desktopConfig.apiLogging
|
||||
KEYCARD_LOGS_ENABLED* = if defined(production): false else: true
|
||||
|
||||
proc hasLogLevelOption*(): bool =
|
||||
for p in cliParams:
|
||||
|
2
vendor/status-keycard-go
vendored
2
vendor/status-keycard-go
vendored
@ -1 +1 @@
|
||||
Subproject commit 6164aa4a829717eb3d745912403b59b32f5928c2
|
||||
Subproject commit 695eab1a68455e366a1a11685840c59595007f94
|
Loading…
x
Reference in New Issue
Block a user