(options = {})
| 879 | * @returns {string} An uppercase logging level name |
| 880 | */ |
| 881 | export function backendLogLevel(options = {}) { |
| 882 | const { verbose = false, env = process.env } = options; |
| 883 | return verbose ? "DEBUG" : env.LOG_LEVEL || DEFAULT_BACKEND_LOG_LEVEL; |
| 884 | } |
| 885 | |
| 886 | /** The only names Uvicorn's `--log-level` accepts; anything else exits 2. */ |
| 887 | export const UVICORN_LOG_LEVELS = [ |
no outgoing calls
no test coverage detected