Skip to content

Commit 8751008

Browse files
committed
bugfix: additional logs for debuggig
1 parent fbfcebc commit 8751008

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

server/services/getPDF.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,14 @@
2121
$images_path = $ini_array["general"]["images_path"];
2222

2323
if (isServiceWithPDFList($service)) {
24+
error_log('This is the service with multi pdf service');
2425
handleMultiPdfService($vis_id, $paper_id, $images_path, $filename, $is_streamgraph);
2526
} else {
27+
error_log('This is the service with single url service');
2628
handleSingleUrlService($vis_id, $paper_id, $url, $images_path, $filename, $is_streamgraph);
2729
}
2830

31+
error_log('Returning the filename:' . $filename);
2932
library\CommUtils::echoOrCallback(json_encode(array("status" => "success", "file" => $filename)), $_GET);
3033

3134
function isServiceWithPDFList(string $service): bool {
@@ -145,6 +148,8 @@ function extractValidPdfUrls(array $revision_data, string $paper_id, bool $is_st
145148
}
146149
}
147150

151+
error_log('This is the valid urls:' . json_encode($valid_urls));
152+
148153
return array_unique($valid_urls);
149154
}
150155

0 commit comments

Comments
 (0)