Skip to content

Commit

Permalink
#113: tidy up System.out.println's
Browse files Browse the repository at this point in the history
  • Loading branch information
rladstaetter committed Jan 15, 2023
1 parent 0c3c6ea commit 48a6dac
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ class MutLogFileSettings {
bind(someLogEntrySettingsProperty)

override def computeValue(): Boolean = {
val res = Option(someLogEntrySettingsProperty.get()).exists(_.isDefined)
println(s"compute to $res")
res
Option(someLogEntrySettingsProperty.get()).exists(_.isDefined)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ class BlockImage[Elem <: BlockView.E] extends CanLog {
assert(width <= BlockImage.MaxWidth, s"width was ${width} which exceeds ${BlockImage.MaxWidth}.")
assert(height <= BlockImage.MaxHeight, s"height was ${height} which exceeds ${BlockImage.MaxHeight}.")
assert(height * width > 0)
// println(s"Allocating ${intWidth * intHeight} memory ...")
Option(this.intBuffer) match {
case Some(value) =>
value.clear()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ object LineNumberBar {
val maxDuration: FiniteDuration = 1200 millis

}

case class LineNumberBar(e: LogEntry
, instant: Instant
, timings: Map[Int, Instant]
Expand All @@ -23,7 +24,6 @@ case class LineNumberBar(e: LogEntry
case Some(nextTi) =>
nextTi.toEpochMilli - instant.toEpochMilli
case None =>
// println(s"timings.size ${timings.size}, linenumber: ${e.lineNumber + 1}")
0L
}

Expand Down
4 changes: 2 additions & 2 deletions app/src/test/scala/app/logorrr/LogProducer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ object LogProducer {
val writer = SimpleWriter(path)

new Thread(writer).start()
System.out.println(s"producing log entries in ${path.toAbsolutePath.toString}, press enter to stop")
Console.println(s"producing log entries in ${path.toAbsolutePath.toString}, press enter to stop")
val keyboard = new Scanner(System.in)
keyboard.nextLine()
writer.stop()
} else {
println("Usage: LogProducer <path to log file>")
Console.println("Usage: LogProducer <path to log file>")
}

}
Expand Down
4 changes: 2 additions & 2 deletions build/src/main/scala/app/logorrr/build/CodeSigner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ object CodeSigner {

def main(args: Array[String]): Unit = {
if (args.length != 4) {
System.out.println("CodeSigner <developerId> <codesign> <entitlements> <path to config>")
Console.println("CodeSigner <developerId> <codesign> <entitlements> <path to config>")
} else {
val developerId = args(0)
val codesign = Paths.get(args(1))
Expand All @@ -19,7 +19,7 @@ object CodeSigner {
if (Files.exists(file)) {
Files.readAllLines(file).asScala.map(f => sign(codesign, entitlements, developerId, file.getParent.resolve(f)))
} else {
System.out.println(s"${file.toAbsolutePath} does not exist, could not execute signing operation ...")
Console.println(s"${file.toAbsolutePath} does not exist, could not execute signing operation ...")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion build/src/main/scala/app/logorrr/build/Commander.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import scala.jdk.CollectionConverters._
object Commander {

def execCmd(workingDir: Path, cmds: Seq[String]): Int = {
System.out.println(cmds.mkString(" "))
Console.println(cmds.mkString(" "))
new ProcessBuilder()
.directory(workingDir.toFile)
.inheritIO()
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/scala/app/logorrr/docs/IconCreatorApp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ object IconCreatorApp {
c.snapshot(spp, writableImage)
val renderedImage = SwingFXUtils.fromFXImage(writableImage, null)
ImageIO.write(renderedImage, "png", target.toFile)
System.out.println(s"Wrote ${target.toAbsolutePath} .")
Console.println(s"Wrote ${target.toAbsolutePath} .")
}

def main(args: Array[String]): Unit = {
Expand Down

0 comments on commit 48a6dac

Please sign in to comment.