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

Issues with configuration #1584

Open
JJ opened this issue Feb 4, 2021 · 3 comments
Open

Issues with configuration #1584

JJ opened this issue Feb 4, 2021 · 3 comments

Comments

@JJ
Copy link

JJ commented Feb 4, 2021

As indicated in #1583, there's some ambiguity on where the config.yml file would go. But additionally, there're a few issues:

  • Some settings simply do not seem to work. port is simply ignored, for instance. Apparently, content_type too.
  • There seems to be some dependence on where the logger directive is placed, which, a YAML file being declarative, probably should not.
  • When using a configuration file, additional settings seem to be ignored.
port: 31415
content_type: "application/json"
engines:
  logger:
    File:
      log_level: core
      file_name: "hitos.log"
logger: "File"

followed by set log_dir => '/tmp' is simply ignored.

@1nickt
Copy link
Contributor

1nickt commented Mar 7, 2021

set log_dir => '/tmp' sets a top-level config key, but that's not where the one you want to override is.

@JJ
Copy link
Author

JJ commented Mar 7, 2021

Thanks for the answer. Where is it, then?

@1nickt
Copy link
Contributor

1nickt commented Mar 7, 2021

Hi JJ

set sets top-level configuration values. I don;t know if it can be used to set subvalues.

But config returns a hashref which you can change.

config->{engines}{logger}{File}{file_name} = 'new.log';

I do not recommend this approach, but rather using the config files properly. Let's see if we can get you straightened out in your other issue ? (And maybe we can consolidate to one open issue?)

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

No branches or pull requests

2 participants