File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ class LogsFunction extends AbstractHandler {
1111 StartTime : startTime , 
1212 EndTime : endTime , 
1313 Namespace : 'default' , 
14-  Filter : filter 
14+  Filter : filter , 
15+  Offset : 0 , 
16+  Limit : 10000 , 
17+  Qualifier : '$LATEST' 
1518 } 
1619 req . from_json_string ( JSON . stringify ( body ) ) 
1720 const  handler  =  util . promisify ( this . scfClient . GetFunctionLogs . bind ( this . scfClient ) ) 
Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ class TencentLogs {
6161 this . options . timestamp  =  tencentTemp . timestamp 
6262 } 
6363 try  { 
64-  const  handler  =  new  LogsFunction ( this . options ,  this . serverless ) 
6564 const  timeFormat  =  'yyyy-MM-dd hh:mm:ss' 
6665 this . serverless . cli . log ( `Get function logs...` ) 
6766 const  functionName  =  this . provider . getFunctionName ( this . options . function ) 
@@ -71,6 +70,7 @@ class TencentLogs {
7170 const  startTime  =  this . options . startTime  ||  this . getTimeFunction ( timeFormat ,  interval ) 
7271 for  ( let  times  =  0 ;  times  <  100000 ;  times ++ )  { 
7372 await  utils . sleep ( interval ) 
73+  const  handler  =  new  LogsFunction ( this . options ,  this . serverless ) 
7474 const  endTime  =  this . getTimeFunction ( 'yyyy-MM-dd hh:mm:ss' ,  0 ) 
7575 const  result  =  await  handler . logs ( 
7676 functionName , 
                                 You can’t perform that action at this time. 
               
                  
0 commit comments