prettier chat messages

This commit is contained in:
cryptonote-social 2021-01-31 16:04:41 -08:00
parent 2f466b1544
commit 2be45a76a5

View File

@ -5,6 +5,7 @@ package csminer
import ( import (
"bufio" "bufio"
"errors" "errors"
"fmt"
"os" "os"
"strconv" "strconv"
"strings" "strings"
@ -258,7 +259,7 @@ func printStatsPeriodically() {
func printChat(unm string, ts int64, msg string) { func printChat(unm string, ts int64, msg string) {
date := time.Unix(ts, 0).Format(time.RFC1123) date := time.Unix(ts, 0).Format(time.RFC1123)
crylog.Info("\n\n[", unm, "] (", date, ")\n", msg, "\n") fmt.Printf("\n[ %s ] (%s):\n%s\n\n", unm, date, msg)
} }
func monitorMachineState(ch chan MachineState) { func monitorMachineState(ch chan MachineState) {