mirror of
https://github.com/cryptonote-social/csminer.git
synced 2024-10-26 05:57:11 +03:00
log tweaks
This commit is contained in:
parent
3fc4844855
commit
033228cb04
4
miner.go
4
miner.go
@ -155,7 +155,7 @@ func Mine(c *MinerConfig) error {
|
|||||||
u = client.UNAUTHENTICATED_USER_STRING + " (sent by you)"
|
u = client.UNAUTHENTICATED_USER_STRING + " (sent by you)"
|
||||||
crylog.Warn("Sending chat without authentication. Provide -wallet string with your user login to authenticate.")
|
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() {
|
for c := chat.NextChatReceived(); c != nil; c = chat.NextChatReceived() {
|
||||||
_, ok := chatsSent[c.ID]
|
_, ok := chatsSent[c.ID]
|
||||||
if !ok {
|
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 {
|
} else {
|
||||||
crylog.Info("queued chat successfully sent")
|
crylog.Info("queued chat successfully sent")
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,8 @@ const (
|
|||||||
CONNECT_JSON_ID = 666
|
CONNECT_JSON_ID = 666
|
||||||
GET_CHATS_JSON_ID = 9999
|
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
|
NO_WALLET_SPECIFIED_WARNING_CODE = 2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user