Merge pull request #6459 from 21pages/format_log

format log
This commit is contained in:
RustDesk 2023-11-18 10:22:55 +08:00 committed by GitHub
commit efc84e53ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 36 additions and 36 deletions

View File

@ -60,7 +60,7 @@ impl RecorderContext {
".mp4"
};
self.filename = PathBuf::from(&dir).join(file).to_string_lossy().to_string();
log::info!("video will save to:{}", self.filename);
log::info!("video will save to {}", self.filename);
Ok(())
}
}

View File

@ -315,7 +315,7 @@ pub fn start_grab_loop() {
if let Err(err) = rdev::start_grab_listen(move |event: Event| match event.event_type {
EventType::KeyPress(key) | EventType::KeyRelease(key) => {
if let Key::Unknown(keycode) = key {
log::error!("rdev get unknown key, keycode is : {:?}", keycode);
log::error!("rdev get unknown key, keycode is {:?}", keycode);
} else {
client::process_event(&get_keyboard_mode(), &event, None);
}

View File

@ -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();