Skip to content

Commit

Permalink
Update code style
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonwang committed Jun 15, 2015
1 parent 90f5dde commit 3e46b35
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,9 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock)
val newAttempts = logs.flatMap { fileStatus =>
try {
val res = replay(fileStatus, bus)
res.map { r =>
logInfo(s"Application log ${r.logPath} loaded successfully.")
}.getOrElse {
logInfo(
s"Failed to load application log ${fileStatus.getPath}." +
res match {
case Some(r) => logInfo(s"Application log ${r.logPath} loaded successfully.")
case None => logWarning(s"Failed to load application log ${fileStatus.getPath}." +
"The application may have not started.")
}
res
Expand Down

0 comments on commit 3e46b35

Please sign in to comment.