mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-12-27 19:37:42 +01:00
Add metrics reports back to cli
This commit is contained in:
parent
1c45329c03
commit
db2df149ad
@ -57,6 +57,7 @@
|
||||
import de.bluecolored.bluemap.core.MinecraftVersion;
|
||||
import de.bluecolored.bluemap.core.config.WebServerConfig;
|
||||
import de.bluecolored.bluemap.core.logger.Logger;
|
||||
import de.bluecolored.bluemap.core.metrics.Metrics;
|
||||
import de.bluecolored.bluemap.core.render.hires.HiresModelManager;
|
||||
import de.bluecolored.bluemap.core.web.FileRequestHandler;
|
||||
import de.bluecolored.bluemap.core.web.WebSettings;
|
||||
@ -67,6 +68,10 @@
|
||||
public class BlueMapCLI {
|
||||
|
||||
public void renderMaps(BlueMapService blueMap, boolean forceRender, boolean forceGenerateWebapp) throws IOException, InterruptedException {
|
||||
|
||||
//metrics report
|
||||
if (blueMap.getCoreConfig().isMetricsEnabled()) Metrics.sendReportAsync("cli");
|
||||
|
||||
blueMap.createOrUpdateWebApp(forceGenerateWebapp);
|
||||
WebSettings webSettings = blueMap.updateWebAppSettings();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user