mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-11-12 03:28:20 +08:00
[fix] restrict sensitive information in release logs
This commit is contained in:
1 parent
67afb25c75
commit
6a8e79d4a9
19 files changed
+87
-91
No files matched your search
@@ -362,8 +362,7 @@ void ClipboardController::SendDeferredLocalText() {
|
||||
session->peer_, last_text_.data(), last_text_.size(),
|
||||
session->clipboard_label_.c_str());
|
||||
if (ret != 0) {
|
||||
LOG_WARN("Failed to send deferred clipboard data to peer [{}], ret={}",
|
||||
session->remote_id_, ret);
|
||||
LOG_WARN("Failed to send deferred clipboard data, ret={}", ret);
|
||||
return;
|
||||
}
|
||||
deferred_local_session_.reset();
|
||||
@@ -390,8 +389,7 @@ int ClipboardController::SendToPeers(const std::string &text) {
|
||||
MiniRtcSendReliableDataFrame(props->peer_, text.data(), text.size(),
|
||||
props->clipboard_label_.c_str());
|
||||
if (ret != 0) {
|
||||
LOG_WARN("Failed to send clipboard data to peer [{}], ret={}",
|
||||
remote_id.c_str(), ret);
|
||||
LOG_WARN("Failed to send clipboard data, ret={}", ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -379,8 +379,8 @@ bool KeyboardController::ReleaseRemotePressedKeysLocked(
|
||||
if (state_it != remote_states_.end()) {
|
||||
const auto& keys = state_it->second.pressed_keys;
|
||||
if (!keys.empty()) {
|
||||
LOG_WARN("Releasing {} remote keyboard keys for remote_id={}, reason={}",
|
||||
keys.size(), remote_id, reason ? reason : "unknown");
|
||||
LOG_WARN("Releasing {} remote keyboard keys, reason={}", keys.size(),
|
||||
reason ? reason : "unknown");
|
||||
}
|
||||
// Stage before erasing: subsequent dispatcher retries must still see the
|
||||
// keys if injection fails, even though active/heartbeat state is gone.
|
||||
|
||||
@@ -60,8 +60,7 @@ bool RestrictCachePermissions(const std::filesystem::path &path,
|
||||
close(fd);
|
||||
}
|
||||
if (error) {
|
||||
LOG_WARN("Cannot restrict credential cache permissions for {}: {}",
|
||||
path.string(),
|
||||
LOG_WARN("Cannot restrict credential cache permissions: {}",
|
||||
std::error_code(error, std::generic_category()).message());
|
||||
}
|
||||
return error == 0;
|
||||
|
||||
Reference in new issue
Block a user