Skip to content

Commit 0dbc10e

Browse files
author
dfounderliu
committed
fix login
1 parent 8c655e7 commit 0dbc10e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

logs/lib/retrieveLogs.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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))

logs/tencentLogs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)