Skip to content

Fix Logging of Config#432

Merged
Defman merged 4 commits into
feather-rs:mainfrom
FussballAndy:main
Jun 10, 2021
Merged

Fix Logging of Config#432
Defman merged 4 commits into
feather-rs:mainfrom
FussballAndy:main

Conversation

@FussballAndy

Copy link
Copy Markdown
Contributor

Fix logging of Config

Status

  • Ready
  • Development
  • Hold

Description

Fixed logging of config after my previous pr created a small "problem" with the config loading/creating not being logged.

Checklist

  • Ran cargo fmt, cargo clippy, cargo build --release and cargo test and fixed any generated errors!
  • Removed unnecessary commented out code
  • Used specific traces (if you trace actions please specify the cause i.e. the player)

Comment thread feather/server/src/config.rs Outdated

/// Loads the config, creating a default config if needed.
pub fn load(path: &str) -> anyhow::Result<Config> {
pub fn load(path: &str) -> anyhow::Result<(Config, bool)> {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the result should be wrapped in a struct, since its not clear what the bool indicates.

@Defman Defman merged commit 3635ab5 into feather-rs:main Jun 10, 2021
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

Successfully merging this pull request may close these issues.

3 participants