Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshibobade21 committed Nov 20, 2023
1 parent bc4b27b commit ea33efb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions c/httpserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -4227,11 +4227,14 @@ void respondWithUnixFileContents2 (HttpService* service, HttpResponse* response,
// Response must ALWAYS be finished on return
void respondWithUnixFileContentsWithAutocvtMode (HttpService* service, HttpResponse* response, char* absolutePath, int jsonMode, int autocvt) {
printf("-------------INSIDE respondWithUnixFileContentsWithAutocvtMode \n");
printf("Absolute Path Before: %s\n", absolutePath);
FileInfo info;
int returnCode;
int reasonCode;
int status = fileInfo(absolutePath, &info, &returnCode, &reasonCode);

printf("Absolute Path After: %s\n", absolutePath);

zowelog(NULL, LOG_COMP_HTTPSERVER, ZOWE_LOG_DEBUG, "finfo:\n");
#ifdef DEBUG
dumpbuffer((char*)&info, sizeof(FileInfo));
Expand Down Expand Up @@ -4938,7 +4941,7 @@ int makeHTMLForDirectory(HttpResponse *response, char *dirname, char *stem, int

// Response must ALWAYS be finished on return
int makeJSONForDirectory(HttpResponse *response, char *dirname, int includeDotted){
printf("---INSIDE makeJSONForDirectory");
printf("---INSIDE makeJSONForDirectory\n");
int count;
int returnCode;
int reasonCode;
Expand Down Expand Up @@ -5032,7 +5035,7 @@ int makeJSONForDirectory(HttpResponse *response, char *dirname, int includeDotte
directoryClose(directory,&returnCode,&reasonCode);
}
}
printf("---EXITING makeJSONForDirectory");
printf("---EXITING makeJSONForDirectory\n");
finishResponse(response);
return 0;
}
Expand Down

0 comments on commit ea33efb

Please sign in to comment.