Skip to content

Commit

Permalink
Move logger instantiation to class val
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudNiner committed Mar 3, 2020
1 parent 4228d2c commit b610229
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ogc/src/main/scala/geotrellis/server/ogc/wcs/WcsModel.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ case class WcsModel(
serviceMetadata: ows.ServiceMetadata,
sources: OgcSourceRepository
) {

private val logger = org.log4s.getLogger

def getLayers(p: GetCoverageWcsParams): List[OgcLayer] = {
val logger = org.log4s.getLogger
val filteredSources = sources.find(p.toQuery)
logger.debug(s"Filtering sources: ${sources.store.length} -> ${filteredSources.length}")
filteredSources.map {
Expand Down

0 comments on commit b610229

Please sign in to comment.