From 22418d022fe3a266b0366eb9614dc3c9c8e22573 Mon Sep 17 00:00:00 2001 From: galihlasahido Date: Sat, 16 Apr 2022 07:58:28 +0700 Subject: [PATCH] Update RotateLogListener.java update for issue https://github.com/jpos/jPOS/issues/264 regarding need to use ZoneId at rotate time because it's different on regular events. --- jpos/src/main/java/org/jpos/util/RotateLogListener.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jpos/src/main/java/org/jpos/util/RotateLogListener.java b/jpos/src/main/java/org/jpos/util/RotateLogListener.java index 82cc8c5bf0..844d1ba3ed 100644 --- a/jpos/src/main/java/org/jpos/util/RotateLogListener.java +++ b/jpos/src/main/java/org/jpos/util/RotateLogListener.java @@ -31,7 +31,9 @@ import java.util.Date; import java.util.Timer; import java.util.TimerTask; - +import java.time.Instant; +import java.time.LocalDateTime; +import java.time.ZoneId; /** * Rotates logs * @author Alejandro P. Revilla @@ -182,7 +184,7 @@ public synchronized void logRotate(boolean isStartup) protected synchronized void logDebug (String msg) { if (p != null) { - p.println (""); + p.println (""); p.println (" "+msg); p.println (""); }