Downlevel some annoying log messages
This commit is contained in:
parent
d768211457
commit
9fd5ff6427
2 changed files with 6 additions and 5 deletions
3
Makefile
3
Makefile
|
|
@ -20,7 +20,8 @@ webui-build: webui-deps
|
||||||
|
|
||||||
@PHONY: devserver
|
@PHONY: devserver
|
||||||
devserver:
|
devserver:
|
||||||
CORS_DEBUG=1 cargo run --release -- server start /tmp/scratch/
|
echo -n '' > /tmp/rqbit-log
|
||||||
|
CORS_DEBUG=1 cargo run --release -- --log-file /tmp/rqbit-log server start /tmp/scratch/
|
||||||
|
|
||||||
@PHONY: clean
|
@PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ use std::{
|
||||||
time::Duration,
|
time::Duration,
|
||||||
};
|
};
|
||||||
use tokio::sync::mpsc::{unbounded_channel, UnboundedSender};
|
use tokio::sync::mpsc::{unbounded_channel, UnboundedSender};
|
||||||
use tracing::{debug, error, error_span, trace, warn, Instrument, Span};
|
use tracing::{debug, error_span, trace, warn, Instrument, Span};
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
const SERVICE_TYPE_WAN_IP_CONNECTION: &str = "urn:schemas-upnp-org:service:WANIPConnection:1";
|
const SERVICE_TYPE_WAN_IP_CONNECTION: &str = "urn:schemas-upnp-org:service:WANIPConnection:1";
|
||||||
|
|
@ -236,7 +236,7 @@ impl UpnpEndpoint {
|
||||||
.filter_map(|(span, url)| match url {
|
.filter_map(|(span, url)| match url {
|
||||||
Ok(url) => Some((span, url)),
|
Ok(url) => Some((span, url)),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
error!("bad control url: {e:#}");
|
debug!("bad control url: {e:#}");
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -262,7 +262,7 @@ async fn discover_services(location: Url) -> anyhow::Result<RootDesc> {
|
||||||
let root_desc: RootDesc = from_str(&response)
|
let root_desc: RootDesc = from_str(&response)
|
||||||
.context("failed to parse response body as xml")
|
.context("failed to parse response body as xml")
|
||||||
.map_err(|e| {
|
.map_err(|e| {
|
||||||
error!("failed to parse this XML: {response}");
|
debug!("failed to parse this XML: {response}");
|
||||||
e
|
e
|
||||||
})?;
|
})?;
|
||||||
Ok(root_desc)
|
Ok(root_desc)
|
||||||
|
|
@ -429,7 +429,7 @@ impl UpnpPortForwarder {
|
||||||
let r = r.unwrap();
|
let r = r.unwrap();
|
||||||
let location = r.location.clone();
|
let location = r.location.clone();
|
||||||
endpoints.push(self.parse_endpoint(r).map_err(|e| {
|
endpoints.push(self.parse_endpoint(r).map_err(|e| {
|
||||||
error!("failed to parse endpoint: {e:#}");
|
debug!("error parsing endpoint: {e:#}");
|
||||||
e
|
e
|
||||||
}).instrument(error_span!("parse endpoint", location=location.to_string())));
|
}).instrument(error_span!("parse endpoint", location=location.to_string())));
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue