From e769de9986c73c953e8f9b0a6a6ddad98ad04109 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 6 Jan 2014 21:41:29 +0100 Subject: [PATCH] Announce read/write/delete status on startup (fixes #14) --- main.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 194d03173..7bb46dacf 100644 --- a/main.go +++ b/main.go @@ -164,8 +164,15 @@ func main() { // Routine to pull blocks from other nodes to synchronize the local // repository. Does not run when we are in read only (publish only) mode. if !opts.ReadOnly { - okln("Ready to synchronize") + if opts.Delete { + infoln("Deletes from peer nodes are allowed") + } else { + infoln("Deletes from peer nodes will be ignored") + } + okln("Ready to synchronize (read-write)") m.StartRW(opts.Delete, opts.Advanced.FilesInFlight, opts.Advanced.RequestsInFlight) + } else { + okln("Ready to synchronize (read only; no external updates accepted)") } // Periodically scan the repository and update the local model.