Replies: 5 comments
-
光看 log 无法确定原因,请先定位原因。 用官方 lua 启动 example 并无问题,skynet 也并未修改 lua 的任何特性。 |
Beta Was this translation helpful? Give feedback.
-
请教一下大佬 |
Beta Was this translation helpful? Give feedback.
-
个人愚见,从功能上讲,skynet_error 这个函数是在记录日志,而不是记录错误,是不是改成 skynet_log 可能更合理一点呢? |
Beta Was this translation helpful? Give feedback.
-
你可以自定义 log 服务,过滤你想过滤的信息。 |
Beta Was this translation helpful? Give feedback.
-
signal address sig 向服务发送一个信号,sig 默认为 0 。当一个服务陷入死循环时,默认信号会打断正在执行的 lua 字节码,并抛出 error 显示调用栈。这是针对 endless loop 的 log 的有效调试方法。注:这里的信号并非系统信号。 |
Beta Was this translation helpful? Give feedback.
-
个人建议,修改官方lua的源码,也还是应该兼容官方lua,毕竟官方lua才是大多数人的选择
[:00000000] A message from [ :01000002 ] to [ :01000002 ] maybe in an endless loop (version = 1)
[:00000000] A message from [ :01000002 ] to [ :01000002 ] maybe in an endless loop (version = 1)
[:00000000] A message from [ :01000002 ] to [ :01000002 ] maybe in an endless loop (version = 1)
[:00000000] A message from [ :01000002 ] to [ :01000002 ] maybe in an endless loop (version = 1)
Beta Was this translation helpful? Give feedback.
All reactions