MCPcopy
hub / github.com/sequelize/sequelize / checkLoggingOption

Method checkLoggingOption

src/dialects/abstract/query.js:151–157  ·  view source on GitHub ↗

* Check the logging option of the instance and print deprecation warnings. * * @private

()

Source from the content-addressed store, hash-verified

149 * @private
150 */
151 checkLoggingOption() {
152 if (this.options.logging === true) {
153 deprecations.noTrueLogging();
154 // eslint-disable-next-line no-console
155 this.options.logging = console.log;
156 }
157 }
158
159 /**
160 * Get the attributes of an insert query, which contains the just inserted id.

Callers 2

constructorMethod · 0.95
constructorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected