KSDaemon/sails-hook-sequelize

Log query

nehalist opened this issue · 3 comments

Tried to pass

options: { logging: true } 

to the connection, but I still don't get the executed query. How to show / log executed query?

You can get log setting options.query.logging: console.log, like this connection:

mysql: {
    user: 'user',
    password: 'pass',
    database: 'db',
    dialect: 'mysql',
    options: {
        query: {
            raw: false,
            logging: console.log
        },
        dialect: 'mysql',
        host: 'localhost',
        port: 3306,
        logging: console.log,
    }
}

@nehalist can this be closed?

Yep.