MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / buildBackendLogEnv

Function buildBackendLogEnv

scripts/dev-safe.mjs:964–978  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

962 * @returns {Record<string, string>} Logging env vars for the backend process
963 */
964export function buildBackendLogEnv(options = {}) {
965 const { verbose = false, automation = false, env = process.env } = options;
966 const level = backendLogLevel({ verbose, env });
967
968 return {
969 LOG_LEVEL: level,
970 ...(automation
971 ? {
972 AUTOMATION_LOG_LEVEL: verbose
973 ? "DEBUG"
974 : env.AUTOMATION_LOG_LEVEL || level,
975 }
976 : {}),
977 };
978}
979
980/**
981 * Build the environment variables object for spawning the agent-server process.

Callers 4

startAutomationBackendFunction · 0.90
buildAgentServerEnvFunction · 0.85

Calls 1

backendLogLevelFunction · 0.85

Tested by

no test coverage detected