@@ -30,24 +30,6 @@ async function run(): Promise<void> {
30
30
core . setFailed ( 'Error authenticating the Cloud SDK.' ) ;
31
31
}
32
32
33
- console . log ( process . cwd ( ) ) ;
34
- console . log ( __dirname ) ;
35
-
36
- // const child = spawn('ls', ['-l'], {
37
- // cwd: resolve(__dirname, '../lib'),
38
- // });
39
-
40
- // child.stdout.on('data', function (data) {
41
- // console.log('ls command output: ' + data);
42
- // });
43
- // child.stderr.on('data', function (data) {
44
- // console.log('stderr: ' + data);
45
- // });
46
-
47
- // child.on('close', function (code) {
48
- // console.log('child process exited with code ' + code);
49
- // });
50
-
51
33
const child = spawn (
52
34
'./cloud_sql_proxy' ,
53
35
[ `-instances=${ instanceConnectionName } =tcp:${ port } ` ] ,
@@ -56,16 +38,6 @@ async function run(): Promise<void> {
56
38
detached : true ,
57
39
} ,
58
40
) ;
59
- child . stdout . on ( 'data' , function ( data ) {
60
- console . log ( 'cloud_sql_proxy command output: ' + data ) ;
61
- } ) ;
62
- child . stderr . on ( 'data' , function ( data ) {
63
- console . log ( 'stderr: ' + data ) ;
64
- } ) ;
65
-
66
- child . on ( 'close' , function ( code ) {
67
- console . log ( 'child process exited with code ' + code ) ;
68
- } ) ;
69
41
child . unref ( ) ;
70
42
} catch ( error ) {
71
43
core . setFailed ( error . message ) ;
0 commit comments