mirror of
https://github.com/cryptonote-social/csminer.git
synced 2024-09-11 05:35:23 +03:00
removing and cleaning up info/debug logging
This commit is contained in:
parent
7508389985
commit
fb26927e76
3
miner.go
3
miner.go
@ -56,7 +56,8 @@ func Mine(c *MinerConfig) error {
|
||||
}
|
||||
if imResp.Code == 2 {
|
||||
crylog.Warn("")
|
||||
crylog.Warn("WARNING: Could not allocate hugepages. Mining might be slow. A reboot might help.")
|
||||
crylog.Warn("WARNING: Could not allocate hugepages. This may reduce hashrate.")
|
||||
crylog.Warn(" Rebooting your machine might fix this.")
|
||||
crylog.Warn("")
|
||||
}
|
||||
|
||||
|
@ -197,7 +197,6 @@ func PoolLogin(args *PoolLoginArgs) *PoolLoginResponse {
|
||||
config := args.Config
|
||||
rigid := args.RigID
|
||||
|
||||
crylog.Info("Pool login: Connecting to pool server")
|
||||
err, code, message, jc := cl.Connect("cryptonote.social:5555", args.UseTLS, agent, loginName, config, rigid)
|
||||
if err != nil {
|
||||
if code != 0 {
|
||||
|
@ -183,8 +183,6 @@ func (cl *Client) Connect(
|
||||
}{}
|
||||
cl.conn.SetReadDeadline(time.Now().Add(30 * time.Second))
|
||||
rdr := bufio.NewReaderSize(cl.conn, MAX_REQUEST_SIZE)
|
||||
//d, _, _ := rdr.ReadLine()
|
||||
//crylog.Info("login response:", string(d))
|
||||
err = readJSON(response, rdr)
|
||||
if err != nil {
|
||||
crylog.Error("readJSON failed for client:", err)
|
||||
@ -195,7 +193,6 @@ func (cl *Client) Connect(
|
||||
return errors.New("stratum server error"), response.Error.Code, response.Error.Message, nil
|
||||
}
|
||||
|
||||
crylog.Info("Connect successful")
|
||||
cl.responseChannel = make(chan *SubmitWorkResponse)
|
||||
cl.alive = true
|
||||
jc := make(chan *MultiClientJob)
|
||||
@ -290,7 +287,6 @@ func (cl *Client) Close() {
|
||||
cl.mutex.Lock()
|
||||
defer cl.mutex.Unlock()
|
||||
if !cl.alive {
|
||||
crylog.Warn("tried to close dead client")
|
||||
return
|
||||
}
|
||||
cl.alive = false
|
||||
@ -304,7 +300,6 @@ func dispatchJobs(conn net.Conn, jobChan chan<- *MultiClientJob, firstJob *Multi
|
||||
close(jobChan)
|
||||
close(responseChan)
|
||||
}()
|
||||
crylog.Info("starting dispatch loop")
|
||||
jobChan <- firstJob
|
||||
reader := bufio.NewReaderSize(conn, MAX_REQUEST_SIZE)
|
||||
for {
|
||||
@ -329,7 +324,6 @@ func dispatchJobs(conn net.Conn, jobChan chan<- *MultiClientJob, firstJob *Multi
|
||||
}
|
||||
jobChan <- response.Job
|
||||
}
|
||||
crylog.Info("dispatch loop done")
|
||||
}
|
||||
|
||||
func readJSON(response interface{}, reader *bufio.Reader) error {
|
||||
|
Loading…
Reference in New Issue
Block a user