@@ -3,7 +3,6 @@ import * as path from 'path';
3
3
import * as fs from "fs" ;
4
4
import { Config } from './types/Config' ;
5
5
import { v4 as uuid } from "uuid"
6
- import log from './logger' ;
7
6
8
7
const basePath = path . join ( os . homedir ( ) , '.cache' , 'appium-device-farm' ) ;
9
8
const deviceFarmHome = getDeviceFarmHome ( ) ;
@@ -16,7 +15,7 @@ function getDeviceFarmHome() {
16
15
if ( ! fs . existsSync ( deviceFarmHome ) ) {
17
16
fs . mkdirSync ( deviceFarmHome , { recursive : true } ) ;
18
17
}
19
- log . info ( "Using Metadata Path: " , deviceFarmHome ) ;
18
+ console . info ( "Using Metadata Path: " , deviceFarmHome ) ;
20
19
return deviceFarmHome ;
21
20
}
22
21
@@ -43,8 +42,8 @@ function getServerMetadata() {
43
42
}
44
43
45
44
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` ,
48
47
sessionAssetsPath : path . join ( deviceFarmHome , 'assets' , 'sessions' ) ,
49
48
takeScreenshotsFor : [ 'click' , 'setUrl' , 'setValue' , 'performActions' ] ,
50
49
appsPath : path . join ( deviceFarmHome , 'assets' ) ,
0 commit comments