mirror of https://github.com/lapce/lapce.git
optimize some logs (#3497)
This commit is contained in:
parent
b8772caefc
commit
b09ed0af01
|
@ -4034,8 +4034,10 @@ pub fn try_open_in_existing_process(
|
|||
fn listen_local_socket(tx: Sender<CoreNotification>) -> Result<()> {
|
||||
let local_socket = Directory::local_socket()
|
||||
.ok_or_else(|| anyhow!("can't get local socket folder"))?;
|
||||
if let Err(err) = std::fs::remove_file(&local_socket) {
|
||||
tracing::error!("{:?}", err);
|
||||
if local_socket.exists() {
|
||||
if let Err(err) = std::fs::remove_file(&local_socket) {
|
||||
tracing::error!("{:?}", err);
|
||||
}
|
||||
}
|
||||
let socket =
|
||||
interprocess::local_socket::LocalSocketListener::bind(local_socket)?;
|
||||
|
|
|
@ -1771,7 +1771,9 @@ fn get_grammar(&self) -> Option<tree_sitter::Language> {
|
|||
return Some(grammar);
|
||||
}
|
||||
Err(err) => {
|
||||
tracing::error!("{:?}", err);
|
||||
if self != &LapceLanguage::PlainText {
|
||||
tracing::error!("{:?} {:?}", self, err);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue