mirror of
https://github.com/yunginnanet/HellPot
synced 2024-06-28 08:40:48 +00:00
Merge branch 'main' into dependabot/go_modules/github.com/valyala/fasthttp-1.52.0
This commit is contained in:
commit
4f4e8850b0
2
.github/workflows/release-command.yml
vendored
2
.github/workflows/release-command.yml
vendored
@ -27,7 +27,7 @@ jobs:
|
||||
goos: windows
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: wangyoucao577/go-release-action@v1.47
|
||||
- uses: wangyoucao577/go-release-action@v1.48
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
goos: ${{ matrix.goos }}
|
||||
|
@ -45,8 +45,9 @@ func StartLogger(pretty bool, targets ...io.Writer) zerolog.Logger {
|
||||
logFile = io.MultiWriter(targets...)
|
||||
default:
|
||||
CurrentLogFile = path.Join(logDir, logFileName+".log")
|
||||
/* #nosec */
|
||||
if logFile, err = os.OpenFile(CurrentLogFile, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0o666); err != nil {
|
||||
|
||||
logFile, err = os.OpenFile(CurrentLogFile, os.O_RDWR|os.O_CREATE|os.O_APPEND, 0o666) // #nosec G304 G302
|
||||
if err != nil {
|
||||
println("cannot create log file: " + err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user