F1F88 / sm-ext-log4sp

Logging for SourcePawn
https://forums.alliedmods.net/showthread.php?t=348776
GNU Affero General Public License v3.0
5 stars 0 forks source link

[BUG] 指令 sm log4sp log 出现崩溃 #8

Closed F1F88 closed 2 days ago

F1F88 commented 2 days ago

使用控制台指令 "sm log4sp log" 测试日志输出时会造成服务器崩溃。

例如:

sm log4sp log LOG4SP info hello-log4sp

将得到:

sm log4sp log LOG4SP info hello-log4sp
/home/nmrihserver/serverfiles/srcds_run: line 324: 167842 Segmentation fault      (core dumped) $HL_CMD
cat: hlds.167830.pid: No such file or directory
email debug.log to linux@valvesoftware.com
Tue Nov 12 09:27:39 AM CST 2024: Server restart in 10 seconds
^CTue Nov 12 09:27:40 AM CST 2024: Server Quit
F1F88 commented 2 days ago

如下指令正常

sm log4sp log LOG4SP info
[SM] Usage: sm log4sp log <logger_name> <level> <message>