Debug Mode
Enable detailed request/response logging.
Debug Mode
Enable debug mode for detailed logging:
import logging
logging.basicConfig(level=logging.DEBUG)
from armoriq_sdk import ArmorIQClient
client = ArmorIQClient(...)
client.debug = True # Enable debug mode
# Now you'll see detailed request/response logsimport { ArmorIQClient } from '@armoriq/sdk';
// Set DEBUG environment variable for detailed logging
process.env.DEBUG = 'armoriq:*';
const client = new ArmorIQClient({
apiKey: process.env.ARMORIQ_API_KEY!,
});
// The SDK automatically logs initialization info
// ArmorIQ SDK initialized: mode=production, api_key=***...
// You can also check token status
import { IntentToken } from '@armoriq/sdk';
const token = await client.getIntentToken(planCapture);
console.log(`Token ID: ${token.tokenId}`);
console.log(`Expires in: ${IntentToken.timeUntilExpiry(token).toFixed(1)}s`);
console.log(`Plan hash: ${token.planHash.slice(0, 16)}...`);