From ab22b55b84edbbb7744999df41c26758037599c0 Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Tue, 2 Jan 2018 18:17:44 -0800 Subject: [PATCH] Add further logging in verbose mode --- src/vfs.rs | 4 ++++ src/web.rs | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/vfs.rs b/src/vfs.rs index 483a93b2..b6fd57cc 100644 --- a/src/vfs.rs +++ b/src/vfs.rs @@ -173,6 +173,10 @@ impl Vfs { match self.plugin_chain.handle_file_change(&route) { Some(routes) => { + if self.config.verbose { + println!("Adding changes from plugin: {:?}", routes); + } + for route in routes { self.change_history.push(VfsChange { timestamp, diff --git a/src/web.rs b/src/web.rs index 65024b18..a91bcd38 100644 --- a/src/web.rs +++ b/src/web.rs @@ -169,6 +169,11 @@ pub fn start(config: Config, project: Project, plugin_chain: &'static PluginChai }) .collect::>(); + if config.verbose { + println!("Got read request: {:?}", read_request); + println!("Responding with:\n\t{:?}", rbx_items); + } + json(ReadResult { server_id: &server_id, items: rbx_items,