在n8n源代码中使用callsites从V8堆栈跟踪API获取调用栈信息
In this article, we review a function called callsites you see in the logger.ts. There is an import at line 5, it is imported from call sites. import callsites from 'callsites'; By the way,...
本文介绍了logger.ts中使用的callsites函数,该函数来自npm包callsites,能够获取调用栈信息,如调用者的文件名和行号,便于日志记录。n8n是一个支持自动化工作流的平台,结合了可视化构建和自定义代码。
