mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
This commit is contained in:
@@ -52,10 +52,15 @@ async function log(
|
||||
|
||||
const { file, line, ...keyValues } = options ?? {};
|
||||
|
||||
let location = filtered?.[0]?.filter((v) => v.length > 0).join("@");
|
||||
if (location === "Error") {
|
||||
location = "webview::unknown";
|
||||
}
|
||||
|
||||
await invoke("plugin:log|log", {
|
||||
level,
|
||||
message,
|
||||
location: filtered?.[0]?.filter((v) => v.length > 0).join("@"),
|
||||
location,
|
||||
file,
|
||||
line,
|
||||
keyValues,
|
||||
|
||||
Reference in New Issue
Block a user