Buffy commited on
Commit
fcbf608
·
1 Parent(s): 79b68e7

childenv: include value lengths

Browse files
Files changed (1) hide show
  1. node_probe.py +1 -1
node_probe.py CHANGED
@@ -60,7 +60,7 @@ def register_routes(fa_app):
60
  if not node:
61
  return JSONResponse({"error": "no node"}, status_code=500)
62
  r = subprocess.run(
63
- [node, "-e", "console.log(JSON.stringify(Object.keys(process.env).filter(k=>/API|KEY|TOKEN/i.test(k)).sort()))"],
64
  capture_output=True, text=True, timeout=30,
65
  )
66
  import json as _j
 
60
  if not node:
61
  return JSONResponse({"error": "no node"}, status_code=500)
62
  r = subprocess.run(
63
+ [node, "-e", "const o={};for(const k of Object.keys(process.env))if(/API|KEY|TOKEN/i.test(k))o[k]=(process.env[k]||'').length;console.log(JSON.stringify(o))"],
64
  capture_output=True, text=True, timeout=30,
65
  )
66
  import json as _j