Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LogLevel setting doesn't work #61

Open
eduarevalo opened this issue Oct 12, 2022 · 1 comment
Open

LogLevel setting doesn't work #61

eduarevalo opened this issue Oct 12, 2022 · 1 comment

Comments

@eduarevalo
Copy link

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
Copy link

delmicio commented May 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants