Skip to content

Commit 099e588

Browse files
committed
Reduce log level for frequently logged messages
1 parent 4956e45 commit 099e588

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/scoord3dUtils.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {
2222
*/
2323
function _geometry2Scoord3d (feature, pyramid, affine) {
2424
const geometry = feature.getGeometry()
25-
console.info('map coordinates from pixel matrix to slide coordinate system')
2625
const frameOfReferenceUID = pyramid[pyramid.length - 1].FrameOfReferenceUID
2726
const type = geometry.getType()
2827
if (type === 'Point') {
@@ -90,7 +89,6 @@ function _geometry2Scoord3d (feature, pyramid, affine) {
9089
* @private
9190
*/
9291
function _scoord3d2Geometry (scoord3d, pyramid, affine) {
93-
console.info('map coordinates from slide coordinate system to pixel matrix')
9492
const type = scoord3d.graphicType
9593
const data = scoord3d.graphicData
9694

src/viewer.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2635,8 +2635,11 @@ class VolumeImageViewer {
26352635
* @returns {roi.ROI} Region of interest.
26362636
*/
26372637
getROI (uid) {
2638-
console.info(`get ROI ${uid}`)
2638+
console.debug(`get ROI ${uid}`)
26392639
const feature = this[_drawingSource].getFeatureById(uid)
2640+
if (feature == null) {
2641+
throw new Error(`Could not find a ROI with UID "${uid}".`)
2642+
}
26402643
return this._getROIFromFeature(
26412644
feature,
26422645
this[_pyramid].metadata,
@@ -2788,7 +2791,7 @@ class VolumeImageViewer {
27882791
return feature.getId() === uid
27892792
})
27902793
if (feature == null) {
2791-
throw new Error()
2794+
throw new Error(`Could not find a ROI with UID "${uid}".`)
27922795
}
27932796
const style = feature.getStyle()
27942797
const stroke = style.getStroke()
@@ -4441,7 +4444,7 @@ class _NonVolumeImageViewer {
44414444
}
44424445

44434446
/**
4444-
* DICOM metadata for the displayed VL Whole Slide Microscopy Image instances.
4447+
* DICOM metadata for the displayed VL Whole Slide Microscopy Image instance.
44454448
*
44464449
* @type {VLWholeSlideMicroscopyImage}
44474450
*/

0 commit comments

Comments
 (0)