actions
Security / scan (1.19.13) (push) Successful in 1m1s
Details
Security / scan (>=1.20) (push) Successful in 49s
Details
Test / uint (1.19.13, ubuntu-latest) (push) Successful in 52s
Details
Test / uint (>=1.20, ubuntu-latest) (push) Successful in 50s
Details
Verify / lint (1.19.13) (push) Successful in 1m40s
Details
Verify / lint (>=1.20) (push) Successful in 1m9s
Details
Security / scan (1.19.13) (push) Successful in 1m1s
Details
Security / scan (>=1.20) (push) Successful in 49s
Details
Test / uint (1.19.13, ubuntu-latest) (push) Successful in 52s
Details
Test / uint (>=1.20, ubuntu-latest) (push) Successful in 50s
Details
Verify / lint (1.19.13) (push) Successful in 1m40s
Details
Verify / lint (>=1.20) (push) Successful in 1m9s
Details
This commit is contained in:
parent
b9045bbd12
commit
4833cbaec1
|
@ -16,7 +16,7 @@ jobs:
|
|||
scan:
|
||||
strategy:
|
||||
matrix:
|
||||
go: ['>=1.19.8']
|
||||
go: ['1.19.13', '>=1.20']
|
||||
fail-fast: true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
|
@ -16,7 +16,7 @@ jobs:
|
|||
uint:
|
||||
strategy:
|
||||
matrix:
|
||||
go: ['>=1.19.8']
|
||||
go: ['1.19.13', '>=1.20']
|
||||
os: [ubuntu-latest]
|
||||
fail-fast: true
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
|
@ -16,7 +16,7 @@ jobs:
|
|||
lint:
|
||||
strategy:
|
||||
matrix:
|
||||
go: ['>=1.19.8']
|
||||
go: ['1.19.13', '>=1.20']
|
||||
fail-fast: true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
3
glog.go
3
glog.go
|
@ -5,6 +5,7 @@ import (
|
|||
"io"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"sync"
|
||||
"time"
|
||||
|
@ -71,7 +72,7 @@ func SetFlag(f int) {
|
|||
}
|
||||
|
||||
func SetLogFile(path string) error {
|
||||
f, err := os.OpenFile(path, os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0644)
|
||||
f, err := os.OpenFile(filepath.Clean(path), os.O_WRONLY|os.O_APPEND|os.O_CREATE, 0600)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue