@@ -25,8 +25,8 @@ module.exports = function (req, res, next) {
2525 STRING_AGG(trim(concat_WS(' ',principal_lith_prefix_cleaned,cleaned_lith,principal_lith_suffix_cleaned)),'|' ORDER BY top_depth) as primary_lith,
2626 STRING_AGG(lith_id::text,'|' ORDER BY top_depth) as lith_id,
2727 STRING_AGG(standard_minor_lith,'|' ORDER BY top_depth) as minor_lith
28- FROM macrostrat.offshore_baggage ob
29- JOIN macrostrat.offshore_sites USING (col_id)
28+ FROM macrostrat.offshore_baggage ob
29+ JOIN macrostrat.offshore_sites USING (col_id)
3030 JOIN macrostrat.col_groups on col_group_id=col_groups.id
3131 ` ;
3232 var where = [ ] ;
@@ -71,13 +71,13 @@ module.exports = function (req, res, next) {
7171 }
7272
7373 larkin . queryPg ( "burwell" , sql , params , function ( error , response ) {
74- console . log ( "RESPONSE FROM LARKIN" , response ) ;
74+ larkin . trace ( "RESPONSE FROM LARKIN" , response ) ;
7575 if ( error ) {
7676 larkin . error ( req , res , next , error ) ;
7777 } else {
7878 //all parameter isn't formatted properly.
7979 if ( req . query . format === undefined || req . query . format !== "csv" ) {
80- console . log ( "RESPONSE FROM LARKIN 3" , response ) ;
80+ larkin . trace ( "RESPONSE FROM LARKIN 3" , response ) ;
8181
8282 for ( var i = 0 ; i < response . rows . length ; i ++ ) {
8383 response . rows [ i ] . top_depth = larkin . jsonifyPipes (
@@ -127,8 +127,8 @@ module.exports = function (req, res, next) {
127127 } ,
128128 } ) ) ,
129129 } ;
130- console . log ( "RESPONSE FROM LARKIN" , response ) ;
131- console . log ( "GEOJSON FROM GEO LARKIN" , geoJson ) ;
130+ larkin . trace ( "RESPONSE FROM LARKIN" , response ) ;
131+ larkin . trace ( "GEOJSON FROM GEO LARKIN" , geoJson ) ;
132132 // Send transformed GeoJSON data
133133 larkin . sendData (
134134 req ,
0 commit comments