Changeset 2207


Ignore:
Timestamp:
Apr 3, 2012, 4:06:10 PM (5 years ago)
Author:
work@…
Message:

println -> log.error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/api/ApiService.groovy

    r2206 r2207  
    126126            );
    127127        } catch (Exception e) {
    128             println "api.getMeasurements failed :: ${e.getMessage()}"
     128            log.error "api.getMeasurements failed :: ${e.getMessage()}"
    129129            json = new org.codehaus.groovy.grails.web.json.JSONArray()
    130130        }
     
    155155            );
    156156        } catch (Exception e) {
    157             println "api.getMeasurementData failed :: ${e.getMessage()}"
     157            log.error "api.getMeasurementData failed :: ${e.getMessage()}"
    158158            json = new org.codehaus.groovy.grails.web.json.JSONArray()
    159159        }
     
    184184            );
    185185        } catch (Exception e) {
    186             println "api.getMeasurementMetaData failed :: ${e.getMessage()}"
     186            log.error "api.getMeasurementMetaData failed :: ${e.getMessage()}"
    187187            json = new org.codehaus.groovy.grails.web.json.JSONArray()
    188188        }
Note: See TracChangeset for help on using the changeset viewer.