We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35f7efd commit a9bb947Copy full SHA for a9bb947
lib.rs
@@ -280,7 +280,7 @@ where
280
let join = builder.spawn(move || loop {
281
match rx.recv().unwrap() {
282
AsyncMsg::Record(r) => {
283
- r.to_drain(&drain).unwrap();
+ r.to_log(&drain).unwrap();
284
}
285
AsyncMsg::Finish => return,
286
@@ -480,7 +480,7 @@ impl AsyncRecord {
480
481
482
/// Writes the record to a `Drain`.
483
- pub fn to_drain<D: Drain>(self, drain: &D) -> Result<D::Ok, D::Err> {
+ pub fn to_log<D: Drain>(self, drain: &D) -> Result<D::Ok, D::Err> {
484
let rs = RecordStatic {
485
location: &*self.location,
486
level: self.level,
0 commit comments