hi all:
由于我的代码是通过文件夹组织的,通过“文件夹+文件名”来区分不同的源码
但日志只能显示如下格式:
2018/07/20 11:14:16 [notice] 29640#29640: *1 stream [lua] message_packet.lua:159: recv_packet(): recv message, remarks: this is client-0x02, client: 127.0.0.1, server: 0.0.0.0:8888
但是当“lua entry thread aborted”时是能打印文件路径的:
2018/07/20 11:14:16 [error] 29640#29640: *1 lua entry thread aborted: runtime error: ./app/services/message_device_proc.lua:21: attempt to index global 'msg_mgr' (a nil value)
63614 stack traceback:
问如何才能打印message_packet.lua的全路径?