Skip to content
Permalink
Browse files

LocalPlatform errors (#449)

* Prune LocalPlatform stderr empty messages
* README referring to a renamed example
  • Loading branch information...
vguerci committed Aug 9, 2019
1 parent 375422f commit 5a9a6d51927de8b0b0bf022fcfad20c0069fe729
Showing with 5 additions and 3 deletions.
  1. +1 −1 README.md
  2. +4 −2 core/src/main/scala/com/criteo/cuttle/platforms/local/LocalPlatform.scala
@@ -66,7 +66,7 @@ For a project example, you can also follow these hands-on introductions:
- [A basic project using the built-in timeseries scheduler](https://criteo.github.io/cuttle/examples/examples0/HelloTimeSeries.scala.html).
- [A minimal custom scheduling](https://criteo.github.io/cuttle/examples/examples0/HelloCustomScheduling.scala.html)

To run the example application, checkout the repository, launch the [sbt](http://www.scala-sbt.org/) console in the project (_you will need [yarn](https://yarnpkg.com/en/) as well to compile the UI part_), and run the `example HelloWorld` command.
To run the example application, checkout the repository, launch the [sbt](http://www.scala-sbt.org/) console in the project (_you will need [yarn](https://yarnpkg.com/en/) as well to compile the UI part_), and run the `example HelloTimeSeries` command.

# Usage

@@ -62,8 +62,10 @@ class LocalProcess(command: String) {
val bytes = Array.ofDim[Byte](buffer.remaining)
buffer.get(bytes)
val str = new String(bytes)
streams.error(str)
errLogger(str)
if (str.nonEmpty) {
streams.error(str)
errLogger(str)
}
}
override def onExit(statusCode: Int) =
statusCode match {

0 comments on commit 5a9a6d5

Please sign in to comment.
You can’t perform that action at this time.