Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 1bbbab0

Browse files
garyrusselltrisberg
authored andcommitted
Fix link to local deployer (DEBUG logs)
1 parent 805c356 commit 1bbbab0

File tree

1 file changed

+19
-19
lines changed
  • spring-cloud-dataflow-docs/src/main/asciidoc

1 file changed

+19
-19
lines changed

spring-cloud-dataflow-docs/src/main/asciidoc/howto.adoc

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[partintro]
55
--
66
This section provides answers to some common '`how do I do that...`' type of questions
7-
that often arise when using Spring Cloud Data Flow.
7+
that often arise when using Spring Cloud Data Flow.
88

99
If you are having a specific problem that we don't cover here, you might want to check out
1010
http://stackoverflow.com/tags/spring-cloud-dataflow[stackoverflow.com] to see if someone has
@@ -24,7 +24,7 @@ for the Dataflow server.
2424
The remote maven repositories need to be configured explicitly if the apps are resolved using maven repository except for `local` Data Flow server. The other
2525
Data Flow server implementations (that use maven resources for app artifacts resolution) have no default value for remote repositories.
2626
The `local` server has `https://repo.spring.io/libs-snapshot` as the default remote repository.
27-
27+
2828
To pass the properties as commandline options:
2929

3030
[source,bash]
@@ -84,21 +84,21 @@ in Cloud Foundry, you'd be passing them as `cf set-env SPRING_APPLICATION_JSON`.
8484

8585
== Logging
8686

87-
Spring Cloud Data Flow is built upon several Spring projects, but ultimately the dataflow-server is a
87+
Spring Cloud Data Flow is built upon several Spring projects, but ultimately the dataflow-server is a
8888
Spring Boot app, so the logging techniques that apply to any link:http://docs.spring.io/spring-boot/docs/current/reference/html/howto-logging.html#howto-logging[Spring Boot]
8989
application are applicable here as well.
9090

9191

92-
While troubleshooting, following are the two primary areas where enabling the DEBUG logs could be
92+
While troubleshooting, following are the two primary areas where enabling the DEBUG logs could be
9393
useful.
9494

9595
=== Deployment Logs
96-
Spring Cloud Data Flow builds upon link:https://github.com/spring-cloud/spring-cloud-deployer[Spring Cloud Deployer] SPI
97-
and the platform specific dataflow-server uses the respective link:https://github.com/spring-cloud?utf8=%E2%9C%93&query=deployer[SPI implementations].
98-
Specifically, if we were to troubleshoot deployment specific issues; such as the network errors, it'd
96+
Spring Cloud Data Flow builds upon link:https://github.com/spring-cloud/spring-cloud-deployer[Spring Cloud Deployer] SPI
97+
and the platform specific dataflow-server uses the respective link:https://github.com/spring-cloud?utf8=%E2%9C%93&query=deployer[SPI implementations].
98+
Specifically, if we were to troubleshoot deployment specific issues; such as the network errors, it'd
9999
be useful to enable the DEBUG logs at the underlying deployer and the libraries used by it.
100100

101-
. For instance, if you'd like to enable DEBUG logs for the link:https://github.com/spring-cloud/spring-cloud-deployer/tree/master/spring-cloud-deployer-local[local-deployer],
101+
. For instance, if you'd like to enable DEBUG logs for the link:https://github.com/spring-cloud/spring-cloud-deployer-local[local-deployer],
102102
you'd be starting the server with following.
103103

104104
+
@@ -111,11 +111,11 @@ $ java -jar <dataflow-server>.jar --logging.level.org.springframework.cloud.depl
111111
(_where, `org.springframework.cloud.deployer.spi.local` is the global package for everything local-deployer
112112
related_)
113113

114-
. For instance, if you'd like to enable DEBUG logs for the link:https://github.com/spring-cloud/spring-cloud-deployer-cloudfoundry[cloudfoundry-deployer],
115-
you'd be setting the following environment variable and upon restaging the dataflow-server, we will
116-
see more logs around request, response and the elaborate stack traces (_upon failures_). The cloudfoundry-deployer
117-
uses link:https://github.com/cloudfoundry/cf-java-client[cf-java-client], so we will have to enable DEBUG
118-
logs for this library.
114+
. For instance, if you'd like to enable DEBUG logs for the link:https://github.com/spring-cloud/spring-cloud-deployer-cloudfoundry[cloudfoundry-deployer],
115+
you'd be setting the following environment variable and upon restaging the dataflow-server, we will
116+
see more logs around request, response and the elaborate stack traces (_upon failures_). The cloudfoundry-deployer
117+
uses link:https://github.com/cloudfoundry/cf-java-client[cf-java-client], so we will have to enable DEBUG
118+
logs for this library.
119119

120120

121121
+
@@ -128,7 +128,7 @@ $ cf restage dataflow-server
128128

129129
(_where, `cloudfoundry-client` is the global package for everything `cf-java-client` related_)
130130

131-
. If there's a need to review Reactor logs, which is used by the `cf-java-client`, then the following
131+
. If there's a need to review Reactor logs, which is used by the `cf-java-client`, then the following
132132
would be helpful.
133133

134134
+
@@ -143,13 +143,13 @@ $ cf restage dataflow-server
143143

144144
NOTE: Similar to the `local-deployer` and `cloudfoundry-deployer` options as discussed above, there
145145
are equivalent settings available for Apache YARN, Apache Mesos and Kubernetes variants, too. Check out the
146-
respective link:https://github.com/spring-cloud?utf8=%E2%9C%93&query=deployer[SPI implementations] to
146+
respective link:https://github.com/spring-cloud?utf8=%E2%9C%93&query=deployer[SPI implementations] to
147147
find out more details about the packages to configure for logging.
148148

149149
=== Application Logs
150150

151-
The streaming applications in Spring Cloud Data Flow are Spring Boot applications and they can be
152-
independently setup with logging configurations.
151+
The streaming applications in Spring Cloud Data Flow are Spring Boot applications and they can be
152+
independently setup with logging configurations.
153153

154154
For instance, if you'd have to troubleshoot the `header` and `payload` specifics that are being passed
155155
around source, processor and sink channels, you'd be deploying the stream with the following
@@ -161,12 +161,12 @@ options.
161161
dataflow:>stream create foo --definition "http --logging.level.org.springframework.integration=DEBUG | transform --logging.level.org.springframework.integration=DEBUG | log --logging.level.org.springframework.integration=DEBUG" --deploy
162162
----
163163

164-
(_where, `org.springframework.integration` is the global package for everything Spring Integration related,
164+
(_where, `org.springframework.integration` is the global package for everything Spring Integration related,
165165
which is responsible for messaging channels_)
166166

167167
These properties can also be specified via `deployment` properties when deploying the stream.
168168

169169
[source,bash]
170170
----
171171
dataflow:>stream deploy foo --properties "app.*.logging.level.org.springframework.integration=DEBUG"
172-
----
172+
----

0 commit comments

Comments
 (0)