From cd676424f08e74e1884b01f95698a2a597b827a6 Mon Sep 17 00:00:00 2001 From: Robert Voyer Date: Fri, 10 Apr 2026 09:53:07 -0700 Subject: [PATCH] NOJIRA: remove use of deprecated Thread.getId --- common-pg/src/main/scala/com/socrata/pg/SecondaryBase.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common-pg/src/main/scala/com/socrata/pg/SecondaryBase.scala b/common-pg/src/main/scala/com/socrata/pg/SecondaryBase.scala index 60d8ed25..be2b858d 100644 --- a/common-pg/src/main/scala/com/socrata/pg/SecondaryBase.scala +++ b/common-pg/src/main/scala/com/socrata/pg/SecondaryBase.scala @@ -55,7 +55,7 @@ trait SecondaryBase { // Keep in mind that postgres limits the application_name to 64 chars (unless you recompile). // The X-Socrata values are set in the MDC for logging in the query servers, while the "-id" values // are set by the secondary watcher processes, so we use whichever we can find. - Thread.currentThread().getId + " " + + Thread.currentThread().threadId() + " " + Option(MDC.get("X-Socrata-RequestId")).orElse(Option(MDC.get("job-id"))).getOrElse("-") + " " + // X-Socrata-Resource is set to the soda fountain resource name, not what the request came into core with. // It would be nice to expose the 4x4 the request came into core with but that requires more plumbing work.