refactor: LogsTZ from &str
This commit is contained in:
+1
-1
@@ -625,7 +625,7 @@ impl AppData {
|
||||
let current_len = container.logs.len();
|
||||
|
||||
for mut i in logs {
|
||||
let tz = LogsTz::from(&i);
|
||||
let tz = LogsTz::from(i.as_str());
|
||||
// Strip the timestamp if `-t` flag set
|
||||
if !timestamp {
|
||||
i = i.replace(&tz.to_string(), "");
|
||||
|
||||
Reference in New Issue
Block a user