timestamps in log files

This commit is contained in:
Ștefan Talpalaru 2020-06-17 16:44:48 +02:00
parent 673eeb6a65
commit 3a3d3f9bde
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ cli do (skipGoerliKey {.
nimFlags = "-d:chronicles_log_level=TRACE " & getEnv("NIM_PARAMS") nimFlags = "-d:chronicles_log_level=TRACE " & getEnv("NIM_PARAMS")
# write the logs to a file # write the logs to a file
nimFlags.add """ -d:"chronicles_sinks=textlines,json[file(nbc.log,truncate)]" """ nimFlags.add """ -d:"chronicles_sinks=textlines,json[file(nbc""" & staticExec("date +\"%Y%m%d%H%M%S\"") & """.log)]" """
let depositContractFile = testnetDir / depositContractFileName let depositContractFile = testnetDir / depositContractFileName
if system.fileExists(depositContractFile): if system.fileExists(depositContractFile):