Clean up log statement

This commit is contained in:
Johannes Altmanninger
2024-04-05 22:13:36 +02:00
parent 1a4bb851ff
commit 629cad66a3

View File

@@ -13,8 +13,6 @@
expand_string, replace_home_directory_with_tilde, ExpandFlags, ExpandResultCode,
};
use crate::fds::open_dir;
use crate::flog::FLOGF;
use crate::function;
use crate::global_safety::RelaxedAtomicBool;
use crate::input_common::{terminal_protocols_disable_scoped, TERMINAL_PROTOCOLS};
use crate::io::IoChain;
@@ -34,6 +32,7 @@
use crate::wait_handle::WaitHandleStore;
use crate::wchar::{wstr, WString, L};
use crate::wutil::{perror, wgettext, wgettext_fmt};
use crate::{function, FLOG};
use libc::c_int;
use nix::sys::stat::Mode;
use once_cell::sync::Lazy;
@@ -945,10 +944,9 @@ pub fn emit_profiling(&self, path: &[u8]) {
let f = match std::fs::File::create(OsStr::from_bytes(path)) {
Ok(f) => f,
Err(err) => {
FLOGF!(
FLOG!(
warning,
"%s",
&wgettext_fmt!(
wgettext_fmt!(
"Could not write profiling information to file '%s': %s",
&String::from_utf8_lossy(path),
err.to_string()