Skip to content

Commit

Permalink
fix: missing assign apiLogger in this of storeInstanceController
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Jan 21, 2024
1 parent 2904d45 commit e3fa12b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/dicom-web/controller/STOW-RS/storeInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class StoreInstanceController extends Controller {
let startSTOWTime = performance.now();
let retCode;
let storeMessage;
let apiLogger = new ApiLogger(this.request, "STOW-RS");
apiLogger.addTokenValue();
this.apiLogger = new ApiLogger(this.request, "STOW-RS");
this.apiLogger.addTokenValue();

try {
let requestMultipartParser = new StowRsRequestMultipartParser(this.request);
Expand All @@ -31,7 +31,7 @@ class StoreInstanceController extends Controller {
}
let endSTOWTime = performance.now();
let elapsedTime = (endSTOWTime - startSTOWTime).toFixed(3);
apiLogger.logger.info(`Finished STOW-RS, elapsed time: ${elapsedTime} ms`);
this.apiLogger.logger.info(`Finished STOW-RS, elapsed time: ${elapsedTime} ms`);

this.response.writeHead(retCode, {
"Content-Type": "application/dicom"
Expand Down

0 comments on commit e3fa12b

Please sign in to comment.