Commit d6b2fec5 authored by Eric's avatar Eric

remove print code

parent 8fe24042
......@@ -96,7 +96,6 @@ func sftpHostConnectorView(wr http.ResponseWriter, req *http.Request) {
addUserVolume(sid, userV)
}
logger.Debugf("sid: %s", sid)
logger.Debug(userVolumes)
con := elfinder.NewElFinderConnector([]elfinder.Volume{userV})
con.ServeHTTP(wr, req)
}
......@@ -392,7 +392,6 @@ func (u *UserVolume) UploadChunk(cid int, dirPath, chunkName string, reader io.R
return err
}
_, err = io.Copy(fd, reader)
fmt.Println(err)
return err
}
......
......@@ -38,7 +38,6 @@ func (c *CommandRecorder) initial() {
c.queue = make(chan *model.Command, 10)
c.storage = NewCommandStorage()
c.closed = make(chan struct{})
//c.storage, _ = NewFileCommandStorage("/tmp/abc.log")
go c.record()
}
......
......@@ -66,7 +66,7 @@ func (s *SwitchSession) Terminate() {
func (s *SwitchSession) recordCommand() {
for command := range s.parser.cmdRecordChan {
if command[0] == "" && command[1] == "" {
if command[0] == ""{
continue
}
cmd := s.generateCommandResult(command)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment