Skip to content

Debug Logging does not output Debug Logs for Restores #764

@mjohal3

Description

@mjohal3

Bug Description

Hi all. I am experiencing a few issues with Litestream restoring and to debug I changed my logging level in the Litestream config from info to debug. However, no debug logs are outputted despite the changes.

Environment

Litestream version:

v0.3.13

Operating system & version:

RHEL v9.6
Installation method:

Built from Source
Storage backend:

S3

Steps to Reproduce

  • Set up any local sqlite database, and create the following config.yaml
dbs:
  - path: "db_name.db"
    replicas:
      - url: "s3://path-to-replica"
logging:
  level: debug
  type: text
  stderr: false
  • Run a replicate job using the following from the same directory as the config.yaml, and you should see debug logs printing
litestream replicate -config config.yaml
  • Run a restore job using
litestream restore -config config.yaml -o debug_test.db "db_name.db"

Expected behavior:

Debug Logs would print for both jobs
Actual behavior:

Only info logs print, however debug logs do print for the replication job

Logs

Log output
# Paste relevant logs here

Additional Context

Add any other context about the problem here (e.g., recent changes, related issues, workarounds you've tried).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions