From 1e356c9c6e6f568720c074fe12f25feda9374820 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 16 Jun 2004 20:18:57 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3611 --- sched/file_upload_handler.C | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/sched/file_upload_handler.C b/sched/file_upload_handler.C index ef93b9aec3..00a1002460 100644 --- a/sched/file_upload_handler.C +++ b/sched/file_upload_handler.C @@ -259,11 +259,12 @@ int handle_file_upload(FILE* in, R_RSA_PUBLIC_KEY& key) { sprintf(path, "%s/%s", config.upload_dir, file_info.name); log_messages.printf( SCHED_MSG_LOG::NORMAL, - "Handling upload of %s from %s [offset=%.0f, nbytes=%.0f]\n", + "Starting upload of %s from %s [offset=%.0f, nbytes=%.0f]\n", file_info.name, get_remote_addr(), offset, nbytes ); + fflush(stderr); if (offset >= nbytes) { log_messages.printf( SCHED_MSG_LOG::CRITICAL, @@ -271,7 +272,16 @@ int handle_file_upload(FILE* in, R_RSA_PUBLIC_KEY& key) { ); return return_success(0); } - return copy_socket_to_file(in, path, offset, nbytes); + retval = copy_socket_to_file(in, path, offset, nbytes); + log_messages.printf( + SCHED_MSG_LOG::NORMAL, + "Ended upload of %s from %s; retval %d\n", + file_info.name, + get_remote_addr(), + retval + ); + fflush(stderr); + return retval; } else { log_messages.printf(SCHED_MSG_LOG::CRITICAL, "unrecognized: %s", buf @@ -408,8 +418,6 @@ int main() { exit(1); } - //installer(); - log_messages.set_debug_level(DEBUG_LEVEL); retval = config.parse_file("..");