liquibase / node-liquibase

Node.js wrap for Liquibase
MIT License
32 stars 14 forks source link

LogLevel setting doesn't work #61

Open eduarevalo opened 1 year ago

eduarevalo commented 1 year ago

Context

Node-Liquibase Version

4.4.0

Liquibase Version (if not bundled)

Description

No extra logs produced when running liquibase from the API.

Steps to Reproduce

Here an snippet:

const liquibase = new Liquibase({ ...., logLevel: "debug" });
liquibase.update({}).then((result) => log(`${dbName} update result: ${result}`))

I see only the liquibase CLI command and a few empty lines:

Example:

[Nest] 48804  - 10/12/2022, 12:08:14 PM     LOG [RouterExplorer] Mapped {/health, GET} route +3ms
[NODE-LIQUIBASE] Running ****/dist/liquibase/liquibase --changeLogFile="***-changelog.xml" --url="jdbc:sqlserver://localhost;databaseName=***;encrypt=true;trustServerCertificate=true" --username="***" --password="***" --classpath="***/dist/liquibase/bin/mssql-jdbc-10.2.1.jre8.jar" --logLevel="warning" update  ...
[NODE-LIQUIBASE] Running ****/dist/liquibase/liquibase --changeLogFile="***-changelog.xml" --url="jdbc:sqlserver://localhost;databaseName=***;encrypt=true;trustServerCertificate=true" --username="***" --password="***" --classpath="***/dist/liquibase/bin/mssql-jdbc-10.2.1.jre8.jar" --logLevel="debug" update  ...
[NODE-LIQUIBASE] 

[Nest] 48804  - 10/12/2022, 12:08:24 PM     LOG [LiquibaseService] CompilationDb update result: 
[NODE-LIQUIBASE] 

[Nest] 48804  - 10/12/2022, 12:09:13 PM     LOG [LiquibaseService] MeasureDb update result: 

[Description of the bug or feature]

Expected behavior: [What you expected to happen] See debug lines to identify slowness issues.

Actual behavior: [What actually happened] No logs or empty log lines

delmicio commented 2 months ago

I think debug word is not supported, you should use fine https://docs.liquibase.com/parameters/log-level.html