Closed jsmzr closed 1 month ago
hello. sir。I can't see any print info in this function Liquidity.computeAmountOut,but I can see a lot of logger.debug like this logger.debug('baseReserve:', baseReserve.toString()) logger.debug('quoteReserve:', quoteReserve.toString()). so. how can i see the log print like above?
兄弟。有空吗 能不能帮忙解释一下为啥我的运行结果里面没有那些log的打印呢
兄弟。有空吗 能不能帮忙解释一下为啥我的运行结果里面没有那些log的打印呢
使用 @raydium-io/raydium-sdk
你可以通过 Logger
进行设置
import { Logger } from "@raydium-io/raydium-sdk";
Logger.setLogLevel('Liquidity', 'DEBUG');
如果你使用的是 @raydium-io/raydium-sdk-v2
,你可以使用 setLoggerLevel
设置
import { setLoggerLevel, LogLevel } from '@raydium-io/raydium-sdk-v2';
setLoggerLevel('Raydium', LogLevel.Debug);
Should I also check the price and get a new pool info if it differs too much from expectations
Log at exception time, Liquidity.computeAmountOut
Normal time logs, Liquidity.computeAmountOut