Skip to content

反馈两个问题 #31

Description

@wangxiaoerYah
  1. config.toml设置memLimit容器运行后会报错:
Loaded config: &{{0.0.0.0 8080 /data/smart-git/repos 1024} {/data/smart-git/log/smart-git.log 5 error} {/data/smart-git/db/smart-git.db} {4h0m0s 10m0s}}                        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x24 pc=0x5814d4]                 
goroutine 1 [running]:
github.com/WJQSERVER-STUDIO/go-utils/log.(*Logger).output(0xc000480700?, 0x1b?, 0x15cf8c0?, 0xca3379?)                                                                                  /go/pkg/mod/github.com/!w!j!q!s!e!r!v!e!r-!s!t!u!d!i!o/go-utils/log@v0.0.3/log.go:233 +0x34
github.com/WJQSERVER-STUDIO/go-utils/log.(*Logger).Printf(...)
        /go/pkg/mod/github.com/!w!j!q!s!e!r!v!e!r-!s!t!u!d!i!o/go-utils/log@v0.0.3/log.go:341
github.com/WJQSERVER-STUDIO/logger.(*Logger).LogStruct(0xc0000e82d0, 0x19?, {0xc000480700, 0x1b})
        /go/pkg/mod/github.com/!w!j!q!s!e!r!v!e!r-!s!t!u!d!i!o/logger@v1.8.0/logger.go:170 +0x29c
github.com/WJQSERVER-STUDIO/logger.(*Logger).LogfStruct(0xc0000e82d0, 0x2, {0xca313a?, 0x46d7db?}, {0xc0002bde50?, 0xb70dc0?, 0x40000000?})                                             /go/pkg/mod/github.com/!w!j!q!s!e!r!v!e!r-!s!t!u!d!i!o/logger@v1.8.0/logger.go:175 +0x4b                                                                                github.com/WJQSERVER-STUDIO/logger.(*Logger).LogInfoStruct(...)
        /go/pkg/mod/github.com/!w!j!q!s!e!r!v!e!r-!s!t!u!d!i!o/logger@v1.8.0/logger.go:190
github.com/WJQSERVER-STUDIO/logger.LogInfo({0xca313a?, 0x1?}, {0xc0002bde50?, 0xc00048fd80?, 0x10?})
        /go/pkg/mod/github.com/!w!j!q!s!e!r!v!e!r-!s!t!u!d!i!o/logger@v1.8.0/logger.go:379 +0x3b
main.setMemLimit(0xc00048fd80)
        /build/main.go:48 +0xa3                                                         main.init.0()
        /build/main.go:56 +0x28
  1. 容器init.sh启动脚本:
    if [ ! -f /data/${APPLICATION}/config/blacklist.json ]; then

文件中的黑白名单是否已经弃用了?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions