This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Caused by: java.lang.RuntimeException: expecting to have a valid Logger | |
at util.MyLogger$.logger(MyLogger.scala:18) | |
at com.mycompany.MyLoggerTrait.info(MyLoggerTrait.scala:25) | |
at com.mycompany.MyLoggerTrait.info$(MyLoggerTrait.scala:25) | |
at util.MyLogger$.info(MyLogger.scala:8) | |
at com.mycompany.MyLoggerTrait.info(MyLoggerTrait.scala:26) | |
at com.mycompany.MyLoggerTrait.info$(MyLoggerTrait.scala:26) | |
at util.MyLogger$.info(MyLogger.scala:8) | |
at aws.MakeClient$.makeS3Client(MakeClient.scala:15) | |
at controllers.MyController.<init>(MyController.scala:38) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers.staticAssets | |
import play.api.http.HeaderNames | |
import play.api.mvc.{Action, Request, Result} | |
import scala.concurrent.Future | |
case class AddNoCacheHeaders[A](action: Action[A]) extends Action[A] with HeaderNames { | |
def apply(request: Request[A]): Future[Result] = { | |
import scala.concurrent.ExecutionContext.Implicits.global |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers | |
import java.io.File | |
import javax.inject.Inject | |
import play.api.Logger | |
import play.Environment | |
import play.api.mvc.{Action, AnyContent} | |
import play.mvc.Controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
urlencode() { | |
# urlencode <string> | |
local length="${#1}" | |
for (( i = 0; i < length; i++ )); do | |
local c="${1:i:1}" | |
case $c in | |
[a-zA-Z0-9.~_-]) printf "$c" ;; | |
*) printf '%%%02X' "'$c" | |
esac |