Skip to content

Commit

Permalink
Remove useless warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Apr 1, 2021
1 parent 59a7b1b commit f6acf12
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
<logger name="org.thp.scalligraph.traversal" level="TRACE"/>
<logger name="org.thp.thehive.services.StreamSrv" level="INFO"/>
<logger name="org.thp.thehive.services.StreamActor" level="INFO"/>
<logger name="org.reflections8.Reflections" level="ERROR" />
<!--
<logger name="org.janusgraph.graphdb" level="INFO" />
<logger name="org.thp.thehive.client" level="DEBUG" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ class DescribeCtrl @Inject() (
case c if classOf[Number].isAssignableFrom(c) => Seq(PropertyDescription(prop.propertyName, "number"))
case c if c == classOf[String] => Seq(PropertyDescription(prop.propertyName, "string"))
case c if c == classOf[EntityId] => Seq(PropertyDescription(prop.propertyName, "string"))
case c if c == classOf[JsValue] => Seq(PropertyDescription(prop.propertyName, "string"))
case _ =>
logger.warn(s"Unrecognized property $prop. Add a custom description")
Seq(PropertyDescription(prop.propertyName, "unknown"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ class DescribeCtrl @Inject() (
case c if classOf[Number].isAssignableFrom(c) => Seq(PropertyDescription(prop.propertyName, "number"))
case c if c == classOf[String] => Seq(PropertyDescription(prop.propertyName, "string"))
case c if c == classOf[EntityId] => Seq(PropertyDescription(prop.propertyName, "string"))
case c if c == classOf[JsValue] => Seq(PropertyDescription(prop.propertyName, "string"))
case _ =>
logger.warn(s"Unrecognized property ${prop.propertyName}:${prop.mapping.domainTypeClass.getSimpleName}. Add a custom description")
Seq(PropertyDescription(prop.propertyName, "unknown"))
Expand Down

0 comments on commit f6acf12

Please sign in to comment.