From 852cd86c61726c577f3e75030dcde42bb2b1b3a7 Mon Sep 17 00:00:00 2001 From: postmannen <postmannen@gmail.com> Date: Fri, 14 Oct 2022 10:22:51 +0200 Subject: [PATCH] removed line feeds --- requests_copy.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/requests_copy.go b/requests_copy.go index aa167a5..01b69ab 100644 --- a/requests_copy.go +++ b/requests_copy.go @@ -153,7 +153,6 @@ func (m methodREQCopySrc) handler(proc process, message Message, node string) ([ } if len(message.MethodArgs) > 5 && message.MethodArgs[5] != "" { - fmt.Printf("\n\n\n Lenght was more than 5 for arguments\n\n") // Check if file permissions were set, if not use default. var err error folderPermission, err = strconv.ParseUint(message.MethodArgs[5], 8, 32) @@ -265,7 +264,7 @@ func (m methodREQCopySrc) handler(proc process, message Message, node string) ([ proc.toRingbufferCh <- []subjectAndMessage{sam} - replyData := fmt.Sprintf("info: succesfully initiated copy source process: procName=%v, srcNode=%v, srcPath=%v, dstNode=%v, dstPath=%v, starting sub process=%v for the actual copying\n", copySrcSubProc.processName, node, SrcFilePath, DstNode, DstFilePath, subProcessName) + replyData := fmt.Sprintf("info: succesfully initiated copy source process: procName=%v, srcNode=%v, srcPath=%v, dstNode=%v, dstPath=%v, starting sub process=%v for the actual copying", copySrcSubProc.processName, node, SrcFilePath, DstNode, DstFilePath, subProcessName) newReplyMessage(proc, message, []byte(replyData)) @@ -338,7 +337,7 @@ func (m methodREQCopyDst) handler(proc process, message Message, node string) ([ go copyDstSubProc.spawnWorker() fp := filepath.Join(cia.DstDir, cia.DstFile) - replyData := fmt.Sprintf("info: succesfully initiated copy source process: procName=%v, srcNode=%v, dstPath=%v, starting sub process=%v for the actual copying\n", copyDstSubProc.processName, node, fp, subProcessName) + replyData := fmt.Sprintf("info: succesfully initiated copy source process: procName=%v, srcNode=%v, dstPath=%v, starting sub process=%v for the actual copying", copyDstSubProc.processName, node, fp, subProcessName) newReplyMessage(proc, message, []byte(replyData))