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:
commit
4f4e8850b0
2
.github/workflows/release-command.yml
vendored
2
.github/workflows/release-command.yml
vendored
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user