glu icon indicating copy to clipboard operation
glu copied to clipboard

No AuditLog when installing glu on PostgreSQL

Open ypujante opened this issue 13 years ago • 2 comments

The steps to reproduce are the following:

  • download fresh install of glu
  • before starting the tutorial, replace the database with PostgreSQL
  • start the tutorial
  • note that there is no entries inserted in the audit log table

see http://glu.977617.n3.nabble.com/Migrating-from-HSQLDB-to-PostgresSQL-td4025043.html for reference

ypujante avatar Oct 19 '12 16:10 ypujante

Almost no entry actually. Trying to login with a different user will create 'user.create' entries from the console user in the audit log, but there will be no other entries, most notably the actual 'login' action will be missing.

sodul avatar Oct 19 '12 17:10 sodul

In AuditLog.groovy, add "flush: true" when saving. def auditLog = new AuditLog(username: username, type: type, details: details, info: info).save(flush: true)

sodul avatar Oct 19 '12 20:10 sodul