Skip to content

DemonicDev/GC-Logger-Silencer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

GC-Logger-Silencer

You are free to use this Script Tested on 5.41.0 Vanilla Pmmp no guarantee it will work for ever, when PMMP decides to change the GarbageCollectorManager.php, this will most likely break Usage on own Risk!

I made this script, since i was annoyed by the Garbage Collection Logs in Console, so it Comments out the Logger->info part in the GarbageCollectorManager Class

Debug on:

image

Debug off:

image

also advantage of this Script is, that the GC-Logs arent saved in server.log

Now The big Question: how to apply this if this isnt a plugin?

Manual Usage

1

Head to Pocketmine-Mp Github Repo, and download the Source-Code, or a fork of pmmp (not tested, but might work on Nethergames multiversion pmmp) put it in the folder where u want to build Pocketmine-MP.phar

2

Download GCR.py (short for GarbageCollectorspamRemover) and put it also in the folder image (on my local pc i used the old File name my bad)

3

open cmd and run "py GCR.py image Result: image

4

download The Pocketmine-Builder and put the bin folder u use for ur Pocketmine Server (depending on OS!) in the path image

5

run it with "py Lite.py" image open then the output folder, where u will find ur Build Pocketmine-MP.phar with disabled GC Spam. The downside of this approach is, that u will need to repeat this process each Pocketmine Update, but this is the only working solution i found after some brainstorming without nuking the asyncworkers

About

U Are Annoyed by the Logs from the Cyclic Garbage Collector on Pocketmine? This is the solution, it removes the logger code from the GCManager

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages