Skip to content

Commit

Permalink
Merge pull request #43 from Dot-Liu/main
Browse files Browse the repository at this point in the history
修复log日志权限问题
  • Loading branch information
Eolink authored Feb 14, 2022
2 parents 74c5d96 + fcccb89 commit 3b101a7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/apinto/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/eosc-*/
goku*
apinto*
*.log
/export/
/runtime_config/
Expand Down
File renamed without changes.
6 changes: 2 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
module github.com/eolinker/goku
module github.com/eolinker/apinto

go 1.16

require (
github.com/Shopify/sarama v1.31.0
github.com/eolinker/eosc v0.4.0
github.com/eolinker/eosc v0.4.2
github.com/go-basic/uuid v1.0.0
github.com/hashicorp/consul/api v1.9.1
github.com/nsqio/go-nsq v1.1.0
github.com/ohler55/ojg v1.12.9
github.com/pkg/sftp v1.13.4
github.com/robertkrimen/otto v0.0.0-20211024170158-b87d35c0b86f
Expand Down
2 changes: 1 addition & 1 deletion output/file-transport/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (w *FileWriterByPeriod) dropHistory() {
}
}
func (w *FileWriterByPeriod) initFile() {
err := os.MkdirAll(w.dir, os.ModeDir)
err := os.MkdirAll(w.dir, 0755)
if err != nil {
log.Println(err)
}
Expand Down
2 changes: 1 addition & 1 deletion utils/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "os"
//GenFile 根据路径和数据生成文件
func GenFile(dir, fileName, data string) error {
dir = "work/export/" + dir
err := os.MkdirAll(dir, os.ModePerm)
err := os.MkdirAll(dir, 0755)
if err != nil {
return err
}
Expand Down

0 comments on commit 3b101a7

Please sign in to comment.