Skip to content

Commit

Permalink
remove log.info e.printStackTrace()
Browse files Browse the repository at this point in the history
  • Loading branch information
geektortoise committed Apr 24, 2020
1 parent c54e2f5 commit 7ddb333
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions grails-app/services/be/cytomine/utils/ModelService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,12 @@ abstract class ModelService {
}
resp = [domain:resp.data.get(objectName).id, status : resp.status]
} catch(WrongArgumentException | CytomineException e){
log.info e.printStackTrace()
log.info(((CytomineException)e).getMessage())
log.error(((CytomineException)e).getStackTrace().collect {it.toString()}.join("\n"))
errors << [data:json[i], message : e.msg]
resp = [message : e.msg, status : e.code]
} catch(Exception e) {
log.info e
log.info e.printStackTrace()
e.printStackTrace()
resp = [message : e.toString(), status : 500]
}

Expand Down

0 comments on commit 7ddb333

Please sign in to comment.