Skip to content

Commit e95e535

Browse files
committed
Update follow all option in response to GH review feedback
Signed-off-by: tpmccallum <tim.mccallum@fermyon.com>
1 parent 39a82d9 commit e95e535

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/content/rust-components.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -194,31 +194,31 @@ message on the `messages` channel, the `echo-message` component will be executed
194194
$ redis-server --port 6379
195195
# then, start the Spin application
196196
$ spin up --file spin.toml
197-
# the logs will output the following
197+
# the application log file will output the following
198198
INFO spin_redis_engine: Connecting to Redis server at redis://localhost:6379
199199
INFO spin_redis_engine: Subscribed component 0 (echo-message) to channel: messages
200200
```
201201

202-
**Please note**: By default, `stdout` goes only to the logs. This is because Spin is intended to run as a server. If you would like to see the published messages interactively please use the `--follow-all` option, when starting the spin application. For example:
203-
204-
```bash
205-
spin up --file spin.toml --follow-all
206-
```
207-
208202
For every new message on the `messages` channel:
209203

210204
```bash
211205
$ redis-cli
212206
127.0.0.1:6379> publish messages "Hello, there!"
213207
```
214208

215-
Spin will instantiate and execute the component we just built:
209+
Spin will instantiate and execute the component we just built, which will emit the `println!` message to the application log file:
216210

217211
```
218212
INFO spin_redis_engine: Received message on channel "messages"
219213
Hello, there!
220214
```
221215

216+
If you would also like to see the `println!` messages echoed to the console as they happen, please include the additional `--follow-all` option, when starting the spin application. For example:
217+
218+
```bash
219+
spin up --file spin.toml --follow-all
220+
```
221+
222222
> You can find a complete example for a Redis triggered component in the
223223
> [Spin repository on GitHub](https://github.com/fermyon/spin/tree/main/examples/redis-rust).
224224

0 commit comments

Comments
 (0)