mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-11-22 00:11:17 +01:00
refactor(log): log webview location after double colon (#3574)
This commit is contained in:
2 files changed
+8
-2
No files matched your search
@@ -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