Skip to content

Commit a8f3599

Browse files
update log
1 parent 9e073db commit a8f3599

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export async function createDB(opts?: ServerOptions) {
4242
throw `A version of MySQL is installed on your system that is not supported by this package. If you want to download a MySQL binary instead of getting this error, please set the option "ignoreUnsupportedSystemVersion" to true.`
4343
}
4444

45-
logger.log('Version currently installed:', version)
45+
logger.log('Version currently installed:', version, 'Platform:', process.platform, 'etcOSRelease:', etcOSRelease)
4646
if (version === null || (options.version && !satisfies(version.version, options.version)) || unsupportedMySQLIsInstalled) {
4747
let binaryInfo: BinaryInfo;
4848
let binaryFilepath: string;

tests/versions.test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,13 @@ import { coerce, satisfies } from 'semver';
55
import { ServerOptions } from '../types';
66
import getBinaryURL from '../src/libraries/Version';
77
import { DOWNLOADABLE_MYSQL_VERSIONS } from '../src/constants';
8-
import etcOSRelease from '../src/libraries/LinuxOSRelease';
98

109
const usernames = ['root', 'dbuser']
1110

1211
jest.setTimeout(500_000); //5 minutes
1312

1413
const arch = process.arch === 'x64' || (process.platform === 'win32' && process.arch === 'arm64') ? 'x64' : 'arm64';
1514

16-
import('console').then(console => {
17-
console.log('Platform:', process.platform)
18-
console.log('etcOSRelease:', etcOSRelease)
19-
})
20-
2115
for (const version of DOWNLOADABLE_MYSQL_VERSIONS.filter(v => satisfies(v, process.env.VERSION_REQUIREMENT || '>0.0.0'))) {
2216
try {
2317
getBinaryURL(version, arch)

0 commit comments

Comments
 (0)