Skip to content

Commit b43ba57

Browse files
committed
Fix
1 parent 1a5a07e commit b43ba57

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/lib.rs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -292,13 +292,16 @@ impl<'a> PlatformLogWriter<'a> {
292292

293293
#[cfg(target_os = "android")]
294294
pub fn new(level: Level, tag: &CStr) -> PlatformLogWriter {
295-
Self::new_with_priority(match level {
296-
Level::Warn => LogPriority::WARN,
297-
Level::Info => LogPriority::INFO,
298-
Level::Debug => LogPriority::DEBUG,
299-
Level::Error => LogPriority::ERROR,
300-
Level::Trace => LogPriority::VERBOSE,
301-
})
295+
Self::new_with_priority(
296+
match level {
297+
Level::Warn => LogPriority::WARN,
298+
Level::Info => LogPriority::INFO,
299+
Level::Debug => LogPriority::DEBUG,
300+
Level::Error => LogPriority::ERROR,
301+
Level::Trace => LogPriority::VERBOSE,
302+
},
303+
tag,
304+
)
302305
}
303306

304307
#[cfg(not(target_os = "android"))]

0 commit comments

Comments
 (0)