Changeset 486


Ignore:
Timestamp:
May 27, 2010, 3:57:41 PM (13 years ago)
Author:
duh
Message:
  • enabled SQL logging for postgres in 'production'
  • added extra debug check to termEditorController save call
Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/DataSource.groovy

    r278 r486  
    6464                        url = "jdbc:postgresql://localhost:5432/gscf"
    6565                        dialect = org.hibernate.dialect.PostgreSQLDialect
     66                        logSql = true
    6667
    6768                        // MySQL
  • trunk/grails-app/controllers/dbnp/studycapturing/TermEditorController.groovy

    r459 r486  
    8585                                if (term.validate()) {
    8686                                        println "Term validated correctly"
    87                                         term.save()
     87                                        if (term.save(flush:true)) {
     88                                                println ".term save ok"
     89                                        } else {
     90                                                println ".term save failed?"
     91                                        }
    8892                                        success()
    8993                    flash.message = "Term addition succeeded"
Note: See TracChangeset for help on using the changeset viewer.