mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
format log, add space after colon
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -534,7 +534,7 @@ impl Connection {
|
||||
#[cfg(windows)]
|
||||
ipc::Data::DataPortableService(ipc::DataPortableService::RequestStart) => {
|
||||
if let Err(e) = portable_client::start_portable_service(portable_client::StartPara::Direct) {
|
||||
log::error!("Failed to start portable service from cm:{:?}", e);
|
||||
log::error!("Failed to start portable service from cm: {:?}", e);
|
||||
}
|
||||
}
|
||||
ipc::Data::SwitchSidesBack => {
|
||||
@@ -1267,7 +1267,7 @@ impl Connection {
|
||||
});
|
||||
}
|
||||
Err(e) => {
|
||||
log::info!("create wallpaper remover failed:{:?}", e);
|
||||
log::info!("create wallpaper remover failed: {:?}", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2143,7 +2143,7 @@ impl Connection {
|
||||
if self.restart {
|
||||
match system_shutdown::reboot() {
|
||||
Ok(_) => log::info!("Restart by the peer"),
|
||||
Err(e) => log::error!("Failed to restart:{}", e),
|
||||
Err(e) => log::error!("Failed to restart: {}", e),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2410,7 +2410,7 @@ impl Connection {
|
||||
crate::platform::change_resolution(&name, r.width as _, r.height as _)
|
||||
{
|
||||
log::error!(
|
||||
"Failed to change resolution '{}' to ({},{}):{:?}",
|
||||
"Failed to change resolution '{}' to ({},{}): {:?}",
|
||||
&name,
|
||||
r.width,
|
||||
r.height,
|
||||
|
||||
@@ -89,7 +89,7 @@ impl SharedMemory {
|
||||
bail!("Unable to create shmem flink {} : {}", flink, e);
|
||||
}
|
||||
};
|
||||
log::info!("Create shared memory, size:{}, flink:{}", size, flink);
|
||||
log::info!("Create shared memory, size: {}, flink: {}", size, flink);
|
||||
set_path_permission(&PathBuf::from(flink), "F").ok();
|
||||
Ok(SharedMemory { inner: shmem })
|
||||
}
|
||||
@@ -102,7 +102,7 @@ impl SharedMemory {
|
||||
bail!("Unable to open existing shmem flink {} : {}", flink, e);
|
||||
}
|
||||
};
|
||||
log::info!("open existing shared memory, flink:{:?}", flink);
|
||||
log::info!("open existing shared memory, flink: {:?}", flink);
|
||||
Ok(SharedMemory { inner: shmem })
|
||||
}
|
||||
|
||||
@@ -351,7 +351,7 @@ pub mod server {
|
||||
}
|
||||
}
|
||||
Err(e) => {
|
||||
log::error!("Failed to create gdi capturer:{:?}", e);
|
||||
log::error!("Failed to create gdi capturer: {:?}", e);
|
||||
std::thread::sleep(std::time::Duration::from_secs(1));
|
||||
continue;
|
||||
}
|
||||
@@ -359,7 +359,7 @@ pub mod server {
|
||||
} else {
|
||||
if recreate || current_display != last_current_display {
|
||||
log::info!(
|
||||
"create capturer, display:{}->{}",
|
||||
"create capturer, display: {} -> {}",
|
||||
last_current_display,
|
||||
current_display,
|
||||
);
|
||||
@@ -399,7 +399,7 @@ pub mod server {
|
||||
Some(Err(e)) => {
|
||||
if e.kind() != std::io::ErrorKind::WouldBlock {
|
||||
// DXGI_ERROR_INVALID_CALL after each success on Microsoft GPU driver
|
||||
// log::error!("capture frame failed:{:?}", e);
|
||||
// log::error!("capture frame failed: {:?}", e);
|
||||
if crate::platform::windows::desktop_changed() {
|
||||
crate::platform::try_change_desktop();
|
||||
c = None;
|
||||
@@ -500,7 +500,7 @@ pub mod server {
|
||||
}
|
||||
}
|
||||
Err(e) => {
|
||||
log::error!("Failed to connect portable service ipc:{:?}", e);
|
||||
log::error!("Failed to connect portable service ipc: {:?}", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -402,7 +402,7 @@ fn run(vs: VideoService) -> ResultType<()> {
|
||||
let mut spf;
|
||||
let mut quality = video_qos.quality();
|
||||
let abr = VideoQoS::abr_enabled();
|
||||
log::info!("init quality={:?}, abr enabled:{}", quality, abr);
|
||||
log::info!("initial quality: {quality:?}, abr enabled: {abr}");
|
||||
let codec_name = Encoder::negotiated_codec();
|
||||
let recorder = get_recorder(c.width, c.height, &codec_name);
|
||||
let last_recording = recorder.lock().unwrap().is_some() || video_qos.record();
|
||||
|
||||
Reference in New Issue
Block a user