Skip to content

Enable/Disable connection messages in console #791

Closed

Description

@akosd127

[2023-11-29T19:59:39+0100] [Info] [connection] incoming connection: 188.157.69.152:63870 id: 0
[2023-11-29T19:59:39+0100] [Info] [join] Thomas has joined the server (0:188.157.69.152)
[2023-11-29T20:00:10+0100] [Info] [part] Thomas has left the server (0:2)

I think it would be a good idea if these messages could be turned off in the "config.json" file.

"logging": {
"enable": true,
"log_chat": true,
"log_connection_messages": true,
"log_cookies": false,
"log_deaths": true,
"log_queries": false,
"log_sqlite": false,
"log_sqlite_queries": false,
"timestamp_format": "[%Y-%m-%dT%H:%M:%S%z]",
"use_prefix": true,
"use_timestamp": true
},

I think it would be useful for those who write separate scripts using OnPlayerConnect and OnPlayerDisconnect.

Activity

  1. added
    enhancement
    on Nov 29, 2023
  2. self-assigned this
    on Nov 29, 2023
  3. akosd127 commented on Dec 2, 2023

    @akosd127
    Author

    open.mp/Server/Source/player_pool.hpp

    Line 1660: "[connection] incoming connection: %s:%d id: %d"

    unfortunately this was left out and thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions