From 27288e490e922c8a51f1879f00f1b1860262b085 Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Sat, 14 Jun 2003 20:15:48 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=1444 --- sched/file_upload_handler.C | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/sched/file_upload_handler.C b/sched/file_upload_handler.C index a247155995..d23020cd99 100644 --- a/sched/file_upload_handler.C +++ b/sched/file_upload_handler.C @@ -177,8 +177,7 @@ int handle_file_upload(FILE* in, R_RSA_PUBLIC_KEY& key) { bool is_valid; while (fgets(buf, 256, in)) { - // TODO: indent - write_log(MSG_DEBUG, buf); + write_log_multiline(MSG_DEBUG, buf); if (match_tag(buf, "")) { retval = file_info.parse(in); if (retval) { @@ -188,11 +187,10 @@ int handle_file_upload(FILE* in, R_RSA_PUBLIC_KEY& key) { file_info.signed_xml, file_info.xml_signature, key, is_valid ); if (retval || !is_valid) { - write_log(MSG_NORMAL, - "signed xml:\n%s" - "signature:\n%s", - file_info.signed_xml, file_info.xml_signature - ); + write_log(MSG_NORMAL, "signed xml:\n"); + write_log_multiline(MSG_NORMAL, file_info.signed_xml); + write_log(MSG_NORMAL, "signature:\n"); + write_log_multiline(MSG_NORMAL, file_info.xml_signature); return return_error(ERR_PERMANENT, "invalid signature"); } continue; @@ -268,8 +266,7 @@ int handle_request(FILE* in, R_RSA_PUBLIC_KEY& key) { bool got_version = false; while (fgets(buf, 256, in)) { - // TODO: indent - write_log(MSG_DEBUG, buf); + write_log_multiline(MSG_DEBUG, buf); if (parse_int(buf, "", major)) { if (major != MAJOR_VERSION) { sprintf(buf,