Skip to content

Commit

Permalink
print path of configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Sep 30, 2023
1 parent fdf4f7a commit 9a9d396
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions internal/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 9a9d396

Please sign in to comment.