Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print path of configuration file #2441

Merged
merged 1 commit into from
Oct 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading