From what I understand, we are meant to use a match statement to log out the respective log level and message but the test keeps failing, Here is a snippet of the failed test cases
thread 'log_emits_warning' panicked at 'assertion failed: `(left == right)`
left: `"[ERROR]: Timezone not set"`,
right: `"[WARNING]: Timezone not set"`', tests/semi-structured-logs.rs:32:5```
Hi there. I need the full code to help efficiently. The mentoring feature is best to help with issues on a particular exercise, the mentor will automatically be able to see all your code.
I believe it’s not possible to open a mentoring request with failing tests in the online editor. But you can submit a failing exercise with the CLI and request mentoring on that.
I also just recommend working locally because you’ll get a better editor experience, especially if you enable the Rust plugin of your favorite editor.
Here’s the documentation for working locally in general, and here’s the documentation for the Rust track.
Hey guys, thank you very much for the response. I do appreciate it. @radar you are right, the types were not exact enough, I tried your solution and that fixed it. Thank you for pointing that out!