mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-18 21:12:19 +02:00
refactor(log): log webview location after double colon (#3574)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"log": patch
|
||||
"log-js": patch
|
||||
---
|
||||
|
||||
Log webview log target locations after 2 colons instead of 1. (e.g. `webview:myFunction@http://localhost:5173/src/myFile.ts?t=1787480723620:47:4` to `webview::myFunction@http://localhost:5173/src/myFile.ts?t=1787480723620:47:4`)
|
||||
@@ -20,9 +20,9 @@ pub fn log(
|
||||
let level = log::Level::from(level);
|
||||
|
||||
let target = if let Some(location) = location {
|
||||
format!("{WEBVIEW_TARGET}:{location}")
|
||||
format!("{WEBVIEW_TARGET}::{location}")
|
||||
} else {
|
||||
WEBVIEW_TARGET.to_string()
|
||||
WEBVIEW_TARGET.to_owned()
|
||||
};
|
||||
|
||||
let mut builder = RecordBuilder::new();
|
||||
|
||||
Reference in New Issue
Block a user