log tweaks

This commit is contained in:
cryptonote-social 2020-12-30 08:48:26 -08:00
parent 3fc4844855
commit 033228cb04
2 changed files with 4 additions and 3 deletions

View File

@ -155,7 +155,7 @@ func Mine(c *MinerConfig) error {
u = client.UNAUTHENTICATED_USER_STRING + " (sent by you)"
crylog.Warn("Sending chat without authentication. Provide -wallet string with your user login to authenticate.")
}
crylog.Info("\n\nCHAT MESSAGE QUEUED TO SEND:\n[", u, "] (", time.Now().Truncate(time.Second), ")\n", chatMsg, "\n")
crylog.Info("\n\n[", u, "] (", time.Now().Truncate(time.Second), ")\n", chatMsg, "\n")
}
}
@ -243,7 +243,7 @@ func printStatsPeriodically() {
for c := chat.NextChatReceived(); c != nil; c = chat.NextChatReceived() {
_, ok := chatsSent[c.ID]
if !ok {
crylog.Info("\n\nCHAT MESSAGE RECEIVED:\n[", c.Username, "] (", time.Unix(c.Timestamp, 0), ")\n", c.Message, "\n")
crylog.Info("\n\n[", c.Username, "] (", time.Unix(c.Timestamp, 0), ")\n", c.Message, "\n")
} else {
crylog.Info("queued chat successfully sent")
}

View File

@ -23,7 +23,8 @@ const (
CONNECT_JSON_ID = 666
GET_CHATS_JSON_ID = 9999
MAX_REQUEST_SIZE = 50000 // Max # of bytes we will read per request
MAX_REQUEST_SIZE = 50000 // Max # of bytes we will read per request
MAX_RUNES_PER_CHAT = 1000 // any chats with more than this number of unicode chars will be ignored by server
NO_WALLET_SPECIFIED_WARNING_CODE = 2