Browse Source

print path of configuration file (#2441)

pull/2446/head
Alessandro Ros 2 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 { @@ -211,7 +211,10 @@ func (p *Core) createResources(initial bool) error {
if initial {
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))
for i, pa := range defaultConfPaths {
a, _ := filepath.Abs(pa)
@ -224,8 +227,7 @@ func (p *Core) createResources(initial bool) error { @@ -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
// to allow the maximum possible number of clients
// do not check for errors
// to allow the maximum possible number of clients.
rlimit.Raise() //nolint:errcheck
gin.SetMode(gin.ReleaseMode)

Loading…
Cancel
Save