Comments (7)
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.
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.
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.
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.
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.
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.
The fix #84 merged.
from mdns-sd.
Related Issues (20)
- Window not seeing service but Liinux does with `avahi-publish` HOT 15
- Custom domain and type HOT 1
- link-local addresses alongside routable interfaces HOT 6
- remove busy polling in the service daemon run loop HOT 1
- support some Ipv4Addr methods for IpAddr
- error message from address decoding HOT 1
- Allow the user to disable IPv6 if desired HOT 1
- Malformed mDNS query causes ServiceDaemon to panic HOT 2
- `.browse` for all subservice's HOT 9
- Not consistent shutdowns and no way to know if shut down? HOT 7
- Trouble with query_missing_srv() HOT 5
- check_service_name_length() attempt to subtract with overflow HOT 5
- Updating service info when service is registered HOT 2
- A and AAAA mDNS records HOT 13
- Use `serde` for de/ser Txt Records HOT 4
- Failed to send to ... Resource temporarily unavailable (os error 11) HOT 2
- Received length loss HOT 21
- When a receiver is dropped, the error produced by sender should not be Error HOT 5
- Issues with using a multicast IP for a service HOT 7
- Services published using python-zerconf or systemd-resolved are not resolved HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdns-sd.