multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.41k stars 438 forks source link

scriptdebugloglevel in mtaserver.conf has no effect for outputDebugString #2857

Closed ds1-e closed 5 months ago

ds1-e commented 1 year ago

Describe the bug

Disabling it fully or changing to different level of this setting has no effect, debug strings will still appear in log file.

Steps to reproduce

  1. Set scriptdebugloglevel to 0 in mtaserver.conf
  2. Do: outputDebugString("test", 4, 255, 127, 0)
  3. Log will appear:
[2022-12-29 16:11:21] test

Version

Client: Multi Theft Auto v1.5.9-release-21488 - Windows 10 x64 Server: MTA:SA Server v1.5.9-release-21487 - Windows 10 x64

Additional context

It seems to be a case only for level 0 and 4. I'm assuming those are not counted as info message.

Relevant log output

No response

Security Policy

patrikjuvonen commented 1 year ago

Related info:

Level 4 added at https://github.com/multitheftauto/mtasa-blue/pull/1167

patrikjuvonen commented 1 year ago

cc @Addlibs in case he'd like to look at it