diff --git a/cli/syscalls/index.ts b/cli/syscalls/index.ts index 44b6c52..945fe97 100644 --- a/cli/syscalls/index.ts +++ b/cli/syscalls/index.ts @@ -36,7 +36,6 @@ export function pageIndexSyscalls(kv: KVStore): SysCallMapping { } }, "index.delete": (_ctx, page: string, key: string) => { - console.log("delete", page, key); return kv.batchDelete([ `index${sep}${page}${sep}${key}`, `indexByKey${sep}${key}${sep}${page}`, @@ -68,7 +67,6 @@ export function pageIndexSyscalls(kv: KVStore): SysCallMapping { `index${sep}${page}${sep}${prefix}`, ) ) { - console.log("GOt back this key to delete", result.key); const [_ns, page, key] = result.key.split(sep); await apiObj["index.delete"](_ctx, page, key); } diff --git a/cmd/plug_run.ts b/cmd/plug_run.ts index 4126b95..3a0cfeb 100644 --- a/cmd/plug_run.ts +++ b/cmd/plug_run.ts @@ -32,7 +32,9 @@ export async function plugRunCommand( port, hostname, ); - console.log("Output", result); + if (result) { + console.log("Output", result); + } Deno.exit(0); } catch (e: any) { console.error(e.message);