From 370ca96f2e7e2adcf5c42672acc129b5d7cc68ea Mon Sep 17 00:00:00 2001 From: extremeheat Date: Thu, 21 Jul 2022 06:24:15 -0400 Subject: [PATCH] Update startVanillaServer.js Debug log on CI --- tools/startVanillaServer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/startVanillaServer.js b/tools/startVanillaServer.js index 8cd1565..cbd9870 100644 --- a/tools/startVanillaServer.js +++ b/tools/startVanillaServer.js @@ -1,7 +1,7 @@ const http = require('https') const fs = require('fs') const cp = require('child_process') -const debug = require('debug')('minecraft-protocol') +const debug = process.env.CI ? console.debug : require('debug')('minecraft-protocol') const https = require('https') const { getFiles, waitFor } = require('../src/datatypes/util') @@ -31,6 +31,7 @@ function fetchLatestStable () { // Download + extract vanilla server and enter the directory async function download (os, version, path = 'bds-') { + debug('Downloading server', os, version, 'into', path) process.chdir(__dirname) const verStr = version.split('.').slice(0, 3).join('.') const dir = path + version