const CLIENT_DEBUG_LOG_ENABLED = new Set(["1", "true", "yes", "y", "on"]).has(
  String(import.meta.env.VITE_CLIENT_LOG_DEBUG ?? "").trim().toLowerCase(),
);

export function debugLog(...args: Parameters<typeof console.debug>) {
  if (!CLIENT_DEBUG_LOG_ENABLED) return;
  console.debug(...args);
}
