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

Unclear logging at startup when using Docker #417

Closed
scottmwyant opened this issue Feb 26, 2024 · 1 comment · Fixed by #427
Closed

Unclear logging at startup when using Docker #417

scottmwyant opened this issue Feb 26, 2024 · 1 comment · Fixed by #427

Comments

@scottmwyant
Copy link
Contributor

As far as I can tell, this is not a functional issue, but potentially makes things confusing for those less experienced with containers (yours truly). I'm writing, only to offer feedback on newer features I'm looking to use; prioritize accordingly.

Docs here  show mounting /mtconnect/config to the host.

  • Agent appears to look in a few other places for config files first, before getting to /mtconnect/config. Would it be more natural to drop the config in /etc/mtconnect/...?
  • There are two lines that indicate config is being loaded from /mtconnect/config/agent.cfg but one line giving conflicting information, saying config is being loaded from /mtconnect/config/agent.cfg in path /home/agent. The config is in fact, not relative to the user's home directory.

image

@wsobel
Copy link
Member

wsobel commented Mar 6, 2024

It looks in some default locations. The logging level probably should be changed to debug. I get where it can be confusing.

The search order is preset, but can be overridden by specifying the cfg file with full path as the third argument.

I'll change the logs level to debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants