From aab167ad269b3a9fe960350a708a5cccaecbee27 Mon Sep 17 00:00:00 2001 From: totoro Date: Wed, 22 May 2019 09:24:39 +0900 Subject: [PATCH] [DEBUG] add some print for debugging --- net_services/CXM_generic_protocol.anubis | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net_services/CXM_generic_protocol.anubis b/net_services/CXM_generic_protocol.anubis index a43561a..c4ffe32 100644 --- a/net_services/CXM_generic_protocol.anubis +++ b/net_services/CXM_generic_protocol.anubis @@ -197,7 +197,7 @@ public define Bool )= //create the target with target_file = tmp_path + "/" + f_ref.name, - + println("NET_SERVICE get_file_ref for "+target_file); with msg = message(_CXM_GET_FILE_REF), forget(add_message(msg, "GET_FILE_REF", to_Message(f_ref))); forget(mQ.add_Message_to_send(msg)); @@ -244,14 +244,14 @@ public define Bool MessageQueue mQ, Message msg, )= - + println("NET_SERVICE send_file_ref received"); if *msg.what = _CXM_GET_FILE_REF then if find_message(msg, "GET_FILE_REF") is { - failure then false + failure then println("NET_SERVICE send_file_ref: can't find GET_FILE_REF message"); false success(file_ref_obj_msg) then if (Maybe(File_ref))from_Message(file_ref_obj_msg) is { - failure then false, + failure then println("NET_SERVICE send_file_ref: can't extract GET_FILE_REF message");false, success(f_ref) then //create the target @@ -264,7 +264,7 @@ public define Bool if (Maybe(RStream))file(source_file, read) is { - failure then println("can't open source file"+source_file);false, //nothing to write + failure then println("NET_SERVICE send_file_ref: can't open source file"+source_file);false, //nothing to write success(source) then send_ACK_ok(mQ, _CXM_GET_FILE_REF, msg); if copy_file_to_Connection(file(source), mQ.get_connection(unique), size) is -- libgit2 0.21.4