From 78ddd595953711aeed2a40b76408b58faba971f1 Mon Sep 17 00:00:00 2001 From: RajshekharMuchandi Date: Tue, 25 Jun 2024 19:41:02 +0530 Subject: [PATCH] [LIVY-992][SERVER] In livy logs, user is not able to differentiate between interactive session and batch session (#435) Changed log info to provide session type details Co-authored-by: Rajshekhar Muchandi --- .../main/scala/org/apache/livy/sessions/SessionManager.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/main/scala/org/apache/livy/sessions/SessionManager.scala b/server/src/main/scala/org/apache/livy/sessions/SessionManager.scala index 164259642..b81bbc036 100644 --- a/server/src/main/scala/org/apache/livy/sessions/SessionManager.scala +++ b/server/src/main/scala/org/apache/livy/sessions/SessionManager.scala @@ -128,7 +128,7 @@ class SessionManager[S <: Session, R <: RecoveryMetadata : ClassTag]( } def delete(session: S): Future[Unit] = { - info(s"Deleting session ${session.id}") + info(s"Deleting ${session}") session.stop().map { case _ => try { sessionStore.remove(sessionType, session.id) @@ -141,7 +141,7 @@ class SessionManager[S <: Session, R <: RecoveryMetadata : ClassTag]( error("Exception was thrown during stop session:", e) throw e } finally { - info(s"Deleted session ${session.id}") + info(s"Deleted ${session}") } } }