@@ -154,7 +154,7 @@ export class JavaStartupAcceleration {
154154 info ( "oss endpoint: " + this . ossEndpoint )
155155 }
156156 await this . genDump ( ) ;
157- info ( "completed" ) ;
157+ info ( "all completed" ) ;
158158 }
159159
160160 async enableQuickStart ( ) {
@@ -220,6 +220,7 @@ export class JavaStartupAcceleration {
220220 error ( e . stderr . toString ( ) ) ;
221221 error ( e . stdout . toString ( ) ) ;
222222 } finally {
223+ info ( "start to clean" ) ;
223224 /* delete local temp files */
224225 await remove ( tmpDir ) ;
225226 await remove ( tmpZipFilePath ) ;
@@ -256,15 +257,16 @@ export class JavaStartupAcceleration {
256257
257258 let result = await fcClient . post ( `/proxy/${ tmpServiceName } /${ tmpFunctionName } /action` , body , null ) ;
258259 let data = result . data ;
259- info ( "server messages: " + data )
260+ info ( "server messages: " + data ) ;
260261 if ( data . indexOf ( "success" ) == 0 ) {
261- info ( "dumped successfully" )
262+ info ( "dumped successfully" ) ;
262263 } else {
263264 throw new Error ( "dump encountered error" ) ;
264265 }
265266 }
266267
267268 private async downloadAccelerationFiles ( fcClient , tmpServiceName : string , tmpFunctionName : string ) {
269+ info ( "downloading" ) ;
268270 let sharedDir = join ( this . artifactPath , this . sharedDirName ) ;
269271 await ensureDir ( sharedDir ) ;
270272 let localFile = join ( sharedDir , ARCHIVE_NAME ) ;
@@ -278,9 +280,11 @@ export class JavaStartupAcceleration {
278280
279281 await this . extractTar ( sharedDir , localFile ) ;
280282 removeSync ( localFile ) ;
283+ info ( "download completed" ) ;
281284 }
282285
283286 private async createTempFunction ( fcClient , tmpServiceName : string , tmpFunctionName : string , tmpZipFilePath : string ) {
287+ info ( "assistant function [" + tmpFunctionName + "] creating" ) ;
284288 await fcClient . createFunction ( tmpServiceName , {
285289 code : {
286290 zipFile : readFileSync ( tmpZipFilePath , 'base64' ) ,
@@ -300,10 +304,11 @@ export class JavaStartupAcceleration {
300304 SRPATH : this . tmpSrpath
301305 }
302306 } ) ;
303- info ( "assistant function [" + tmpFunctionName + "] created" )
307+ info ( "assistant function [" + tmpFunctionName + "] created" ) ;
304308 }
305309
306310 private static async createTempTrigger ( fcClient , tmpServiceName : string , tmpFunctionName : string , tmpTriggerName : string ) {
311+ info ( "assistant trigger [" + tmpTriggerName + "] creating" ) ;
307312 await fcClient . createTrigger ( tmpServiceName , tmpFunctionName , {
308313 invocationRole : '' ,
309314 qualifier : 'LATEST' ,
@@ -312,10 +317,11 @@ export class JavaStartupAcceleration {
312317 triggerName : tmpTriggerName ,
313318 triggerType : 'http'
314319 } ) ;
315- info ( "assistant trigger [" + tmpTriggerName + "] created" )
320+ info ( "assistant trigger [" + tmpTriggerName + "] created" ) ;
316321 }
317322
318323 private async createTempService ( fcClient , tmpServiceName ) {
324+ info ( "assistant service [" + tmpServiceName + "] creating" ) ;
319325 await fcClient . createService ( tmpServiceName , {
320326 description : '用于 Alibaba Dragonwell Acceleration Cache 生成' ,
321327 serviceName : tmpServiceName ,
@@ -324,7 +330,7 @@ export class JavaStartupAcceleration {
324330 nasConfig : this . nasConfig ,
325331 vpcConfig : this . vpcConfig ,
326332 } ) ;
327- info ( "assistant service [" + tmpServiceName + "] created" )
333+ info ( "assistant service [" + tmpServiceName + "] created" ) ;
328334 }
329335
330336 private async getFCClient ( ) {
@@ -350,11 +356,13 @@ export class JavaStartupAcceleration {
350356 }
351357
352358 private async genZip ( dir : string , zipFilePath : string ) {
359+ info ( "zip file creating" ) ;
353360 await this . makeZip ( dir , zipFilePath ) ;
354361 info ( "zip file created" ) ;
355362 }
356363
357364 private async createZipAndUploadToOSS ( ) {
365+ info ( "start to upload" ) ;
358366 const tmpZipFilePath = join ( tmpdir ( ) , this . ossKey ) ;
359367
360368 await this . genZip ( this . artifactPath , tmpZipFilePath ) ;
0 commit comments