Skip to content

Commit 2d93715

Browse files
committed
Comment debug logging in wasm/js
1 parent f2a2ee9 commit 2d93715

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

js/proj4.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function defs(name) {
5353

5454
// Transform array or object to Proj point
5555
function toPoint(coords) {
56-
console.debug(coords);
56+
//console.debug(coords);
5757
if (Array.isArray(coords) && coords.length>1) {
5858
return new Proj.Point(coords[0], coords[1], (coords.length > 2 ? coords[2] : 0.0));
5959
} else if (typeof coords === 'object' && coords.x !== undefined && coords.y !== undefined) {
@@ -180,13 +180,13 @@ function proj4(fromProj, toProj, coords) {
180180
obj = {
181181
forward: function (coords) {
182182
let rv = transformer(fromProj, toProj, coords);
183-
console.debug("forward", rv);
183+
//console.debug("forward", rv);
184184
//return transformer(fromProj, toProj, coords);
185185
return rv;
186186
},
187187
inverse: function (coords) {
188188
let rv = transformer(toProj, fromProj, coords);
189-
console.debug("inverse", rv);
189+
//console.debug("inverse", rv);
190190
//return transformer(toProj, fromProj, coords);
191191
return rv;
192192
}

src/wasm/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl transform::Transform for Point {
154154

155155
#[wasm_bindgen]
156156
pub fn transform(src: &Projection, dst: &Projection, point: &mut Point) -> Result<(), JsError> {
157-
log::debug!("transform: {}, {}, {}", point.x, point.y, point.z);
157+
// log::debug!("transform: {}, {}, {}", point.x, point.y, point.z);
158158

159159
if point.x.is_nan() || point.y.is_nan() {
160160
return Err(JsError::from(errors::Error::NanCoordinateValue));

0 commit comments

Comments
 (0)