You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by al...@apache.org on 2020/07/15 05:12:24 UTC
[openwhisk-wskdebug] 01/01: [activation DB agent] add
X-OW-EXTRA-LOGGING header #49
This is an automated email from the ASF dual-hosted git repository.
alexkli pushed a commit to branch logging-header
in repository https://gitbox.apache.org/repos/asf/openwhisk-wskdebug.git
commit 4ad10013a8a7aa12142ac71f9c2fead5689d928b
Author: Alexander Klimetschek <ak...@adobe.com>
AuthorDate: Tue Jul 14 22:11:45 2020 -0700
[activation DB agent] add X-OW-EXTRA-LOGGING header #49
---
package-lock.json | 12 ++++++------
package.json | 2 +-
src/agentmgr.js | 5 ++++-
3 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 2c5ed8e..a39ebd8 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2397,9 +2397,9 @@
"dev": true
},
"needle": {
- "version": "2.4.1",
- "resolved": "https://registry.npmjs.org/needle/-/needle-2.4.1.tgz",
- "integrity": "sha512-x/gi6ijr4B7fwl6WYL9FwlCvRQKGlUNvnceho8wxkwXqN8jvVmmmATTmZPRRG7b/yC1eode26C2HO9jl78Du9g==",
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/needle/-/needle-2.5.0.tgz",
+ "integrity": "sha512-o/qITSDR0JCyCKEQ1/1bnUXMmznxabbwi/Y4WwJElf+evwJNFNwIDMCCt5IigFVxgeGBJESLohGtIS9gEzo1fA==",
"requires": {
"debug": "^3.2.6",
"iconv-lite": "^0.4.4",
@@ -2588,9 +2588,9 @@
}
},
"openwhisk": {
- "version": "3.21.1",
- "resolved": "https://registry.npmjs.org/openwhisk/-/openwhisk-3.21.1.tgz",
- "integrity": "sha512-cinF78O4TVxEOhlLW1DyuPxzNLiqY3aYj7gQ9QmDAFjln66kbiMxdWmsaELKkyVwpjn8tWLhikPylBygAq+b6w==",
+ "version": "3.21.2",
+ "resolved": "https://registry.npmjs.org/openwhisk/-/openwhisk-3.21.2.tgz",
+ "integrity": "sha512-Fxx1fupwZaKxbzpN/pCd0PLItRAjS9PXJCnm+JFPY7592koQlYTQo3t7DpBVYTiqIUx9Z1kKdpla3JyLaZSXIA==",
"requires": {
"needle": "^2.4.0"
}
diff --git a/package.json b/package.json
index 61a4fa0..f7c8007 100644
--- a/package.json
+++ b/package.json
@@ -52,7 +52,7 @@
"isomorphic-fetch": "^2.2.1",
"livereload": "^0.9.1",
"manakin": "^0.5.2",
- "openwhisk": "^3.21.1",
+ "openwhisk": "^3.21.2",
"ora": "^4.0.3",
"pretty-bytes": "^5.3.0",
"pretty-ms": "^6.0.1",
diff --git a/src/agentmgr.js b/src/agentmgr.js
index 25b9b1f..34b182d 100644
--- a/src/agentmgr.js
+++ b/src/agentmgr.js
@@ -388,7 +388,10 @@ class AgentMgr {
await this.wsk.actions.invoke({
name: this.concurrency ? this.actionName : `${this.actionName}_wskdebug_completed`,
params: result,
- blocking: true
+ blocking: true,
+ headers: {
+ "X-OW-EXTRA-LOGGING": "on"
+ }
});
} catch (e) {
// look for special error codes from agent