[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet-nim] 49/61: added date and time string to output
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet-nim] 49/61: added date and time string to output |
Date: |
Sat, 13 Apr 2019 13:36:24 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnunet-nim.
commit 88d96e84d9824fde3f0c9a765a3e28ef6ebc7b7e
Author: t3sserakt <address@hidden>
AuthorDate: Sat Aug 11 09:44:18 2018 +0200
added date and time string to output
---
examples/groupchat.nim | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/examples/groupchat.nim b/examples/groupchat.nim
index ffc7771..26f9848 100644
--- a/examples/groupchat.nim
+++ b/examples/groupchat.nim
@@ -1,5 +1,5 @@
import ../gnunet_application, ../asynccadet, ../gnunet_utils
-import asyncdispatch, asyncfile, parseopt, strutils, sequtils
+import asyncdispatch, asyncfile, parseopt, strutils, sequtils, times, os
type Chat = object
channels: seq[ref CadetChannel]
@@ -8,7 +8,7 @@ proc publish(chat: ref Chat, message: string, sender: ref
CadetChannel = nil) =
let message =
if sender.isNil(): message.strip(leading = false)
else: "[" & sender.peer.peerId() & "] " & message.strip(leading = false)
- echo message
+ echo getDatestr(), " ", getClockStr(), " ", message
for c in chat.channels:
c.sendMessage(message)
@@ -34,7 +34,7 @@ proc processServerMessages(channel: ref CadetChannel)
{.async.} =
let (hasData, message) = messageFuture.read()
if not hasData:
break
- echo message
+ echo getDateStr()," ",getClockStr()," ",message
messageFuture = channel.messages.read()
proc firstTask(gnunetApp: ref GnunetApplication,
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet-nim] 21/61: add GNUnet configs and scripts for testing, (continued)
- [GNUnet-SVN] [gnunet-nim] 21/61: add GNUnet configs and scripts for testing, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 56/61: gnunet_nim.nim: fix import paths to point to parent dir, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 37/61: disconnect from the cadet service when CadetHandle is destroyed, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 53/61: restructure groupchat application, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 44/61: add peer ID string functions, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 45/61: use peer IDs as chat identifiers, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 48/61: Makefile to clean the build., gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 52/61: workaround for missing notification about disconnected cadet channels, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 09/61: fix compilation, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 60/61: Start of a nimble file, should probably drop nake later on., gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 49/61: added date and time string to output,
gnunet <=
- [GNUnet-SVN] [gnunet-nim] 10/61: fix compilation (2), gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 23/61: receiving of cadet messages possible now, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 51/61: Merge branch 'master' of ssh://gnunet.org/gnunet-nim, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 50/61: load config file in release mode too (fixes segfault), gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 36/61: use immutable variables where possible, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 33/61: add support for input and output file, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 54/61: try out nimbox, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 55/61: Revert "try out nimbox", gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 57/61: Add nakefile, nim.cfg, and ignore more things, gnunet, 2019/04/13
- [GNUnet-SVN] [gnunet-nim] 47/61: examples/{start, stop}_peers: Use /bin/sh, tested and checked against Bash and shellcheck., gnunet, 2019/04/13