parent
03cfead241
commit
3fdd593f0f
3
Makefile
3
Makefile
|
@ -225,8 +225,7 @@ DEFAULT_TENOR_API_KEY := DU7DWZ27STB2
|
|||
TENOR_API_KEY ?= $(DEFAULT_TENOR_API_KEY)
|
||||
NIM_PARAMS += -d:TENOR_API_KEY:"$(TENOR_API_KEY)"
|
||||
|
||||
# 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)]"
|
||||
NIM_PARAMS += -d:chronicles_sinks="textlines[stdout],textlines[nocolors,file]"
|
||||
|
||||
RESOURCES_LAYOUT := -d:development
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import NimQml, chronicles, os, strformat
|
||||
import NimQml, chronicles, os, strformat, times
|
||||
|
||||
import app/chat/core as chat
|
||||
import app/wallet/v1/core as wallet
|
||||
|
@ -28,6 +28,9 @@ proc mainProc() =
|
|||
if defined(macosx) and defined(production):
|
||||
setCurrentDir(getAppDir())
|
||||
|
||||
let logFile = fmt"app_{getTime().toUnix}.log"
|
||||
discard defaultChroniclesStream.output.open(LOGDIR & logFile, fmAppend)
|
||||
|
||||
var currentLanguageCode: string
|
||||
|
||||
let fleets =
|
||||
|
|
|
@ -4,3 +4,4 @@ export DATADIR
|
|||
export STATUSGODIR
|
||||
export KEYSTOREDIR
|
||||
export TMPDIR
|
||||
export LOGDIR
|
||||
|
|
|
@ -227,6 +227,8 @@ let
|
|||
STATUSGODIR* = joinPath(baseDir, "data") & sep
|
||||
KEYSTOREDIR* = joinPath(baseDir, "data", "keystore") & sep
|
||||
TMPDIR* = joinPath(baseDir, "tmp") & sep
|
||||
LOGDIR* = joinPath(baseDir, "logs") & sep
|
||||
|
||||
createDir(DATADIR)
|
||||
createDir(TMPDIR)
|
||||
createDir(LOGDIR)
|
||||
|
|
Loading…
Reference in New Issue