Merge pull request #2183 from MageKing17/patch-1

Get rid of console spam in NetscriptFunctions.ts
This commit is contained in:
hydroflame 2021-12-28 10:34:01 -05:00 committed by GitHub
commit 329221a974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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]...)");