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) { ...@@ -96,7 +96,6 @@ func sftpHostConnectorView(wr http.ResponseWriter, req *http.Request) {
addUserVolume(sid, userV) addUserVolume(sid, userV)
} }
logger.Debugf("sid: %s", sid) logger.Debugf("sid: %s", sid)
logger.Debug(userVolumes)
con := elfinder.NewElFinderConnector([]elfinder.Volume{userV}) con := elfinder.NewElFinderConnector([]elfinder.Volume{userV})
con.ServeHTTP(wr, req) con.ServeHTTP(wr, req)
} }
...@@ -392,7 +392,6 @@ func (u *UserVolume) UploadChunk(cid int, dirPath, chunkName string, reader io.R ...@@ -392,7 +392,6 @@ func (u *UserVolume) UploadChunk(cid int, dirPath, chunkName string, reader io.R
return err return err
} }
_, err = io.Copy(fd, reader) _, err = io.Copy(fd, reader)
fmt.Println(err)
return err return err
} }
......
...@@ -38,7 +38,6 @@ func (c *CommandRecorder) initial() { ...@@ -38,7 +38,6 @@ func (c *CommandRecorder) initial() {
c.queue = make(chan *model.Command, 10) c.queue = make(chan *model.Command, 10)
c.storage = NewCommandStorage() c.storage = NewCommandStorage()
c.closed = make(chan struct{}) c.closed = make(chan struct{})
//c.storage, _ = NewFileCommandStorage("/tmp/abc.log")
go c.record() go c.record()
} }
......
...@@ -66,7 +66,7 @@ func (s *SwitchSession) Terminate() { ...@@ -66,7 +66,7 @@ func (s *SwitchSession) Terminate() {
func (s *SwitchSession) recordCommand() { func (s *SwitchSession) recordCommand() {
for command := range s.parser.cmdRecordChan { for command := range s.parser.cmdRecordChan {
if command[0] == "" && command[1] == "" { if command[0] == ""{
continue continue
} }
cmd := s.generateCommandResult(command) 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