mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-14 05:42:27 +00:00
Make chat filter logging configurable (#618)
* Make chat filter logging configurable Disables chat logging by default, but allows for it to be re-enabled if need be. * Update ProjectLighthouse.Servers.GameServer/Controllers/MessageController.cs Co-authored-by: Josh <josh@slendy.pw> * Update ServerConfiguration.cs Co-authored-by: Josh <josh@slendy.pw>
This commit is contained in:
parent
86dff92179
commit
993d14d90a
2 changed files with 4 additions and 2 deletions
|
@ -120,7 +120,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.";
|
|||
|
||||
string username = await this.database.UsernameFromGameToken(token);
|
||||
|
||||
Logger.Info($"{username}: {message} / {scannedText}", LogArea.Filter);
|
||||
if (ServerConfiguration.Instance.LogChatFiltering)
|
||||
Logger.Info($"{username}: {message} / {scannedText}", LogArea.Filter);
|
||||
|
||||
return this.Ok(scannedText);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue