logging
This commit is contained in:
parent
ec22bcd3ad
commit
af808c2024
|
@ -121,7 +121,12 @@ func CloneHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
channelRet["cmd"] = "git clone"
|
channelRet["cmd"] = "git clone"
|
||||||
|
|
||||||
// read all
|
// read all
|
||||||
buf, _ := ioutil.ReadAll(reader)
|
buf, err := ioutil.ReadAll(reader)
|
||||||
|
if nil != err {
|
||||||
|
logger.Warn(err)
|
||||||
|
|
||||||
|
// TODO: handle clone error
|
||||||
|
}
|
||||||
|
|
||||||
logger.Debugf("User [%s, %s] 's running [git clone] [runningId=%d] has done: %s", username, sid, runningId, string(buf))
|
logger.Debugf("User [%s, %s] 's running [git clone] [runningId=%d] has done: %s", username, sid, runningId, string(buf))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue