Skip to content

Commit 74d8202

Browse files
uaArsendenyshld
authored andcommitted
Update sailor version, build type and component logger (#12)
* Update sailor version, build type and component logger
1 parent 70086b2 commit 74d8202

File tree

8 files changed

+525
-117
lines changed

8 files changed

+525
-117
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## 0.0.2 (December 24, 2019)
2+
3+
* Update sailor version to 2.5.4
4+
* Update component to use component logger
5+
* Change build type to docker

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
## Description
44
elastic.io configuration component which allows separating the modification of configurable values from the modification of the flow.
55

6+
### Environment Variables
7+
1.`LOG_LEVEL` - `trace` | `debug` | `info` | `warning` | `error` controls logger level
8+
9+
610
### How works. API version / SDK version
711
Configuration component has a credential which is a text field with some valid JSON. (JSON must be valid in order for credentials to be verified).
812
It emits a message with an object equivalent to the JSON in the config. So any data which is used in the flow and is repeated in multiple places can be configured (or later changed) in the single step. After that new values are used where it is needed.

component.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"title": "Configuration component",
33
"description": "elastic.io component to separate the modification of some configurable values from the modification of the flow",
4+
"buildType" : "docker",
45
"credentials": {
56
"fields": {
67
"configData": {

lib/actions/emitConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function processAction(msg, cfg) {
1515
throw new Error('Config data is required.');
1616
}
1717

18-
console.log('About to emit config data as a body');
18+
this.logger.info('About to emit config data as a body');
1919
this.emit('data', messages.newMessageWithBody(jsonConfigData));
2020
this.emit('end');
2121
}

0 commit comments

Comments
 (0)