Skip to content

Commit

Permalink
docs: update readme to reflect changes made to Logger
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejsmolinski committed Aug 7, 2019
1 parent 3b04f3b commit 2206353
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,45 +57,45 @@ while the browser will show only a `success` message, the server will give you m
When `configuration.json` file is missing:

```shell
2019/08/05 23:55:40 err Failure reading configuration.json
2019/08/05 23:55:40 err Failure reading configuration.json
```

When `configuration.json` has a wrong format:

```shell
2019/08/05 23:56:40 err Configuration file is not structured properly
2019/08/05 23:56:40 Error at array index 0: Error at property "id": Type mismatch: expected String, found Undefined
2019/08/05 23:56:40 err Configuration file is not structured properly
2019/08/05 23:56:40 Error at array index 0: Error at property "id": Type mismatch: expected String, found Undefined
```

When selected definition is not present in the configuration:

```shell
2019/08/06 23:57:52 log Incoming request /run?definition=unknown&secret=unknown-token
2019/08/06 23:57:52 err Definition with provided id and secret not found
2019/08/06 23:57:52 info Incoming request /run?definition=unknown&secret=unknown-token
2019/08/06 23:57:52 err Definition with provided id and secret not found
```

When definition exists but one of the commands fails:

```shell
2019/08/06 00:02:20 log Incoming request /run?definition=main&secret=secret-token
2019/08/06 00:02:20 log Running definition "main"
2019/08/06 00:02:20 log Executing git branch
2019/08/06 00:02:20 fatal: not a git repository (or any of the parent directories): .git
2019/08/06 00:02:20 Process exited with status code 128
2019/08/06 00:02:20 err Execution FAILED
2019/08/06 00:02:20 info Incoming request /run?definition=main&secret=secret-token
2019/08/06 00:02:20 info Running definition "main"
2019/08/06 00:02:20 info Executing git branch
2019/08/06 00:02:20 fatal: not a git repository (or any of the parent directories): .git
2019/08/06 00:02:20 Process exited with status code 128
2019/08/06 00:02:20 err Execution FAILED
```

Finally, when everything succeeds:

```shell
2019/08/06 00:03:30 log Incoming request /run?definition=main&secret=secret-token
2019/08/06 00:03:30 log Running definition "main"
2019/08/06 00:03:30 log Executing git branch
2019/08/06 00:03:30 * master
2019/08/06 00:03:30 log Executing git status
2019/08/06 00:03:30 On branch master
2019/08/06 00:03:30 nothing to commit, working tree clean
2019/08/06 00:03:30 log Execution SUCCEEDED
2019/08/06 00:03:30 info Incoming request /run?definition=main&secret=secret-token
2019/08/06 00:03:30 info Running definition "main"
2019/08/06 00:03:30 info Executing git branch
2019/08/06 00:03:30 * master
2019/08/06 00:03:30 info Executing git status
2019/08/06 00:03:30 On branch master
2019/08/06 00:03:30 nothing to commit, working tree clean
2019/08/06 00:03:30 info Execution SUCCEEDED
```

## Local development
Expand Down

0 comments on commit 2206353

Please sign in to comment.