removed unnecessary debug statements
Этот коммит содержится в:
@@ -5,7 +5,6 @@ package api
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
l4g "code.google.com/p/log4go"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/goamz/goamz/aws"
|
"github.com/goamz/goamz/aws"
|
||||||
"github.com/goamz/goamz/s3"
|
"github.com/goamz/goamz/s3"
|
||||||
@@ -198,7 +197,6 @@ func TestGetFile(t *testing.T) {
|
|||||||
// wait a bit for files to ready
|
// wait a bit for files to ready
|
||||||
time.Sleep(5 * time.Second)
|
time.Sleep(5 * time.Second)
|
||||||
|
|
||||||
l4g.Debug(filenames)
|
|
||||||
if _, downErr := Client.GetFile(filenames[0], false); downErr != nil {
|
if _, downErr := Client.GetFile(filenames[0], false); downErr != nil {
|
||||||
t.Fatal(downErr)
|
t.Fatal(downErr)
|
||||||
}
|
}
|
||||||
@@ -431,7 +429,6 @@ func TestGetPublicLink(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
l4g.Debug(resp.Data.(*model.FileUploadResponse).Filenames[0])
|
|
||||||
filenames := strings.Split(resp.Data.(*model.FileUploadResponse).Filenames[0], "/")
|
filenames := strings.Split(resp.Data.(*model.FileUploadResponse).Filenames[0], "/")
|
||||||
filename := filenames[len(filenames)-2] + "/" + filenames[len(filenames)-1]
|
filename := filenames[len(filenames)-2] + "/" + filenames[len(filenames)-1]
|
||||||
fileId := strings.Split(filename, ".")[0]
|
fileId := strings.Split(filename, ".")[0]
|
||||||
|
|||||||
@@ -166,7 +166,6 @@ func CreatePost(c *Context, post *model.Post, doUpdateLastViewed bool) (*model.P
|
|||||||
path := post.Filenames[i]
|
path := post.Filenames[i]
|
||||||
|
|
||||||
doRemove = false
|
doRemove = false
|
||||||
l4g.Debug(path)
|
|
||||||
if model.UrlRegex.MatchString(path) {
|
if model.UrlRegex.MatchString(path) {
|
||||||
continue
|
continue
|
||||||
} else if model.PartialUrlRegex.MatchString(path) {
|
} else if model.PartialUrlRegex.MatchString(path) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user