added ip into log file name

pull/37/head
Richard Liu 6 years ago
parent 1f377f8bd4
commit f092d25d7a
  1. 2
      benchmark.go
  2. 2
      client/txgen/main.go

@ -129,7 +129,7 @@ func main() {
}
// Setup a logger to stdout and log file.
logFileName := fmt.Sprintf("./%v/%s-%v.log", *logFolder, role, *port)
logFileName := fmt.Sprintf("./%v/%s-%v-%v.log", *logFolder, role, *ip, *port)
h := log.MultiHandler(
log.StdoutHandler,
log.Must.FileHandler(logFileName, log.LogfmtFormat()), // Log to file

@ -255,7 +255,7 @@ func main() {
// TODO(Richard): refactor this chuck to a single method
// Setup a logger to stdout and log file.
logFileName := fmt.Sprintf("./%v/tx-generator.log", *logFolder)
logFileName := fmt.Sprintf("./%v/txgen.log", *logFolder)
h := log.MultiHandler(
log.StdoutHandler,
log.Must.FileHandler(logFileName, log.LogfmtFormat()), // Log to file

Loading…
Cancel
Save