【发布时间】:2018-02-01 01:44:35
【问题描述】:
我无法在 aerospike 的 UDF(Lua 中)打印日志。 aerospike的conf文件中的日志配置为:
logging {
console {
context any info
}
file /var/log/aerospike/aerospike.log {
context any info
}
file /var/log/aerospike/lua.log {
context any critical
context aggr debug
context udf debug
context query debug
}
}
日志源代码-
function filter(topRec)
debug("Hello")
info("Hello")
end
【问题讨论】:
-
在 lua.log 中看到打开和关闭的记录了吗?例如:2018 年 1 月 31 日 17:35:54 GMT:DEBUG (udf): (udf_record.c:73) [ENTER] 打开记录键:
:0x6902655800a8e0b15d7837a293ed11f6d7bb4e8a