Browse Source

print path of configuration file (#2441)

pull/2446/head
Alessandro Ros 3 years ago committed by GitHub
parent
commit
9c6168e7e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      internal/core/core.go

8
internal/core/core.go

@ -211,7 +211,10 @@ func (p *Core) createResources(initial bool) error {
if initial { if initial {
p.Log(logger.Info, "MediaMTX %s", version) p.Log(logger.Info, "MediaMTX %s", version)
if p.confPath == "" { if p.confPath != "" {
a, _ := filepath.Abs(p.confPath)
p.Log(logger.Info, "configuration loaded from %s", a)
} else {
list := make([]string, len(defaultConfPaths)) list := make([]string, len(defaultConfPaths))
for i, pa := range defaultConfPaths { for i, pa := range defaultConfPaths {
a, _ := filepath.Abs(pa) a, _ := filepath.Abs(pa)
@ -224,8 +227,7 @@ func (p *Core) createResources(initial bool) error {
} }
// on Linux, try to raise the number of file descriptors that can be opened // on Linux, try to raise the number of file descriptors that can be opened
// to allow the maximum possible number of clients // to allow the maximum possible number of clients.
// do not check for errors
rlimit.Raise() //nolint:errcheck rlimit.Raise() //nolint:errcheck
gin.SetMode(gin.ReleaseMode) gin.SetMode(gin.ReleaseMode)

Loading…
Cancel
Save