Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
add error logging and update dependencies (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
realstraw authored Jan 27, 2021
1 parent 59a1661 commit d48236a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
20 changes: 14 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
val awsSdkVersion = "1.11.887"
val awsSdkVersion = "1.11.943"
val slickVersion = "3.3.3"
val akkaVersion = "2.6.10"
val akkaVersion = "2.6.11"

val scalaTestArtifact = "org.scalatest" %% "scalatest" % "3.2.2" % Test
val scalaTestArtifact = "org.scalatest" %% "scalatest" % "3.2.3" % Test
val slickArtifact = "com.typesafe.slick" %% "slick" % slickVersion
val slickHikaricpArtifact = "com.typesafe.slick" %% "slick-hikaricp" % slickVersion
val scoptArtifact = "com.github.scopt" %% "scopt" % "3.7.1"
Expand All @@ -16,18 +16,26 @@ val awsSdkSES = "com.amazonaws" % "aws-java-sdk-ses"
val awsSdkSSM = "com.amazonaws" % "aws-java-sdk-ssm" % awsSdkVersion
val awsSdkSNS = "com.amazonaws" % "aws-java-sdk-sns" % awsSdkVersion
val awsSdkCloudWatch = "com.amazonaws" % "aws-java-sdk-cloudwatch" % awsSdkVersion
val metricsGraphite = "io.dropwizard.metrics" % "metrics-graphite" % "4.1.14"
val metricsGraphite = "io.dropwizard.metrics" % "metrics-graphite" % "4.1.17"
val postgreSqlJdbc = "org.postgresql" % "postgresql" % "42.2.18"
val awsLambdaEvents = "com.amazonaws" % "aws-lambda-java-events" % "3.4.0"
val awsLambdaEvents = "com.amazonaws" % "aws-lambda-java-events" % "3.7.0"
val awsLambdaCore = "com.amazonaws" % "aws-lambda-java-core" % "1.2.1"
val akkaActorArtifact = "com.typesafe.akka" %% "akka-actor-typed" % akkaVersion

lazy val commonSettings = Seq(
scalacOptions ++= Seq("-deprecation", "-feature", "-Xlint", "-Xfatal-warnings"),
scalaVersion := "2.12.12",
scalaVersion := "2.12.13",
libraryDependencies += scalaTestArtifact,
organization := "com.krux",
test in assembly := {}, // skip test during assembly
assemblyMergeStrategy in assembly := {
// scala 2.12.13 also introduces the nowarn.class in scala-compat
case PathList(ps @ _*) if Set("nowarn$.class", "nowarn.class").contains(ps.last) =>
MergeStrategy.first
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
},
publishMavenStyle := true
)

Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=1.4.0
sbt.version=1.4.6
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ class DispatcherActor(context: ActorContext[DispatcherActor.Msg], starportSettin
// TODO it would be more moduler if this is done in a separate actor
result match {
case Left(ex) =>
context.log.warn(s"failed to deploy pipeline ${pipeline.name} error: ${ex.getMessage()}")
context.log.warn(s"failed to deploy pipeline ${pipeline.name}, handling error...")
ErrorHandler.pipelineScheduleFailed(pipeline, ex.getMessage)(
ErrorHandler.pipelineScheduleFailed(pipeline, ex.getMessage())(
starportSetting,
context.executionContext
)
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "7.4.1"
version in ThisBuild := "7.4.2"

0 comments on commit d48236a

Please sign in to comment.