Skip to content
Permalink
Browse files

Remove log

  • Loading branch information...
Raggaer committed Apr 7, 2019
1 parent 17a674d commit afa9cca61d8a87254d4727b2f03d313a570f7cc8
Showing with 0 additions and 4 deletions.
  1. +0 −4 static.go
@@ -4,7 +4,6 @@ import (
"bytes"
"compress/gzip"
"io"
"log"
"net/http"
"os"
"path/filepath"
@@ -89,7 +88,6 @@ func LoadStaticAssets(dir string) error {
if info.IsDir() {
dirPath := buildNewPath(dir, filepath.Join("static", path))
if err := os.Mkdir(dirPath, 0755); err != nil {
log.Println(err, dirPath)
return err
}
return nil
@@ -108,8 +106,6 @@ func LoadStaticAssets(dir string) error {
fname = buildNewPath(dir, filepath.Join("static", filepath.Dir(path), strconv.FormatInt(info.ModTime().Unix(), 10)+"_"+info.Name()+".gz"))
}

log.Println(fname)

dst, err := os.OpenFile(fname, os.O_WRONLY|os.O_TRUNC|os.O_CREATE, 0777)
if err != nil {
return err

0 comments on commit afa9cca

Please sign in to comment.
You can’t perform that action at this time.