Coder Social home page Coder Social logo

Comments (7)

keepsimple1 avatar keepsimple1 commented on July 17, 2024 1

Currently you can use default-features = false to disable the logging from this crate. And use features =<> to enable other features (i.e. async) if needed, for example like this:

mdns-sd = { version = "0.5", default-features = false, features = ["async"] }

Let me know if that helps. I'm also working on a longer term change that sends log events in a monitoring channel instead of logging directly.

from mdns-sd.

mortenlj avatar mortenlj commented on July 17, 2024

That helped, but I guess now I won't get any kinds of errors or warnings from mdns?

Anyhow, that's good enough for me for now.

from mdns-sd.

keepsimple1 avatar keepsimple1 commented on July 17, 2024

Thanks for verifying. I'm looking into how to detect such errors earlier and avoid logging it during a send. What is the mdns-sd version you are using?

from mdns-sd.

keepsimple1 avatar keepsimple1 commented on July 17, 2024

That helped, but I guess now I won't get any kinds of errors or warnings from mdns?

I've open a PR to test the socket send when a socket is created. This would help avoiding such errors when the daemon starts to run. @mortenlj would you have time to help check if the fix work for you? (So you don't have to disable all logging from mdns-sd)

from mdns-sd.

mortenlj avatar mortenlj commented on July 17, 2024

What is the mdns-sd version you are using?

mdns-sd = { version = "0.5.10", default-features = false, features = ["async"] }

would you have time to help check if the fix work for you? (So you don't have to disable all logging from mdns-sd)

I'm not sure how much time I have for this, this is a low priority, "playing with Rust to scratch a weird itch in my homelab" kind of thing. I can't promise anything, but happy to help if I can.

Btw, the code is pushed to github now: https://github.com/mortenlj/mdns2domeneshop

As you can probably tell, this is just my second attempt at making anything with Rust, and my first attempt doing anything with mdns. I'm about 70% sure I'm doing something very weird, very stupid or both 😬.

from mdns-sd.

keepsimple1 avatar keepsimple1 commented on July 17, 2024

I'm not sure how much time I have for this, this is a low priority, "playing with Rust to scratch a weird itch in my homelab" kind of thing. I can't promise anything, but happy to help if I can.

No worries, thanks for letting me know.

from mdns-sd.

keepsimple1 avatar keepsimple1 commented on July 17, 2024

The fix #84 merged.

from mdns-sd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.