1
4
mirror of https://github.com/yunginnanet/HellPot synced 2024-06-30 17:50:53 +00:00

Merge branch 'main' into dependabot/go_modules/github.com/valyala/fasthttp-1.52.0

This commit is contained in:
kayos 2024-02-14 22:16:58 -08:00 committed by GitHub
commit 4f4e8850b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

@ -27,7 +27,7 @@ jobs:
goos: windows goos: windows
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1.47 - uses: wangyoucao577/go-release-action@v1.48
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }} goos: ${{ matrix.goos }}

@ -45,8 +45,9 @@ func StartLogger(pretty bool, targets ...io.Writer) zerolog.Logger {
logFile = io.MultiWriter(targets...) logFile = io.MultiWriter(targets...)
default: default:
CurrentLogFile = path.Join(logDir, logFileName+".log") 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()) println("cannot create log file: " + err.Error())
os.Exit(1) os.Exit(1)
} }