mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +01:00
Get rid of console spam in NetscriptFunctions.ts
This was filling up the console and making it hard to debug anything other than `exec` calls.
This commit is contained in:
parent
d99b03d12e
commit
a16cb745c5
@ -952,7 +952,6 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
|
|||||||
return runScriptFromScript("run", scriptServer, scriptname, args, workerScript, threads);
|
return runScriptFromScript("run", scriptServer, scriptname, args, workerScript, threads);
|
||||||
},
|
},
|
||||||
exec: function (scriptname: any, hostname: any, threads: any = 1, ...args: any[]): any {
|
exec: function (scriptname: any, hostname: any, threads: any = 1, ...args: any[]): any {
|
||||||
console.log(`${scriptname} ${hostname} ${threads} ${JSON.stringify(args)}`);
|
|
||||||
updateDynamicRam("exec", getRamCost("exec"));
|
updateDynamicRam("exec", getRamCost("exec"));
|
||||||
if (scriptname === undefined || hostname === undefined) {
|
if (scriptname === undefined || hostname === undefined) {
|
||||||
throw makeRuntimeErrorMsg("exec", "Usage: exec(scriptname, server, [numThreads], [arg1], [arg2]...)");
|
throw makeRuntimeErrorMsg("exec", "Usage: exec(scriptname, server, [numThreads], [arg1], [arg2]...)");
|
||||||
|
Loading…
Reference in New Issue
Block a user