Skip to content

Commit f4eca35

Browse files
fix: installation issue due to incorrect config loading (#1578)
1 parent e705664 commit f4eca35

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/config.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import * as path from 'path';
33
import * as fs from "fs";
44
import { Config } from './types/Config';
55
import {v4 as uuid} from "uuid"
6-
import log from './logger';
76

87
const basePath = path.join(os.homedir(), '.cache', 'appium-device-farm');
98
const deviceFarmHome = getDeviceFarmHome();
@@ -16,7 +15,7 @@ function getDeviceFarmHome() {
1615
if(!fs.existsSync(deviceFarmHome)) {
1716
fs.mkdirSync(deviceFarmHome, { recursive: true });
1817
}
19-
log.info("Using Metadata Path: ", deviceFarmHome);
18+
console.info("Using Metadata Path: ", deviceFarmHome);
2019
return deviceFarmHome;
2120
}
2221

@@ -43,8 +42,8 @@ function getServerMetadata() {
4342
}
4443

4544
export const config: Config = {
46-
cacheDir: basePath,
47-
databasePath: `${basePath}/device-farm-latest.db?connection_limit=1`,
45+
cacheDir: deviceFarmHome,
46+
databasePath: `${deviceFarmHome}/device-farm-latest.db?connection_limit=1`,
4847
sessionAssetsPath: path.join(deviceFarmHome, 'assets', 'sessions'),
4948
takeScreenshotsFor: ['click', 'setUrl', 'setValue', 'performActions'],
5049
appsPath: path.join(deviceFarmHome, 'assets'),

0 commit comments

Comments
 (0)