From 8bd3ebfaf502f4702fa4512349d8e48a626a19f0 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Tue, 18 Jun 2019 17:17:03 +0100 Subject: [PATCH] timestamp entries --- cli/src/main/groovy/com/muwire/cli/Cli.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/src/main/groovy/com/muwire/cli/Cli.groovy b/cli/src/main/groovy/com/muwire/cli/Cli.groovy index f6fe06d8..d8eb2b39 100644 --- a/cli/src/main/groovy/com/muwire/cli/Cli.groovy +++ b/cli/src/main/groovy/com/muwire/cli/Cli.groovy @@ -73,7 +73,7 @@ class Cli { Timer timer = new Timer("status-printer", true) timer.schedule({ - println "Connections $connectionsListener.connections Uploads $uploadsListener.uploads Shared $sharedListener.shared" + println new Date() + " Connections $connectionsListener.connections Uploads $uploadsListener.uploads Shared $sharedListener.shared" } as TimerTask, 60000, 60000) def latch = new CountDownLatch(1) @@ -119,11 +119,11 @@ class Cli { volatile int uploads public void onUploadEvent(UploadEvent e) { uploads++ - println "Starting upload of ${e.uploader.file.getName()} to ${e.uploader.request.downloader.getHumanReadableName()}" + println new Date() + " Starting upload of ${e.uploader.file.getName()} to ${e.uploader.request.downloader.getHumanReadableName()}" } public void onUploadFinishedEvent(UploadFinishedEvent e) { uploads-- - println "Finished upload of ${e.uploader.file.getName()} to ${e.uploader.request.downloader.getHumanReadableName()}" + println new Date() + " Finished upload of ${e.uploader.file.getName()} to ${e.uploader.request.downloader.getHumanReadableName()}" } }