Skip to content

Allow enabling debug logging in MicroCloud #806

Open

Description

@roosterfish

Right now you cannot enable debug logging on the MicroCloud daemon if its running inside the snap.
The idea would be to have something equivalent to LXD where you can do snap set microcloud daemon.debug=true to change the log level.

The daemon already supports setting the log level but setting isn't surfaced to the user through the snap.

Activity

  1. MggMuggins commented on Jun 3, 2025

    @MggMuggins
    Contributor

    If this gets implemented, could you also include db.trace as in LXD to facilitate dqlite debugging (see usage)?

  2. roosterfish commented on Jun 3, 2025

    @roosterfish
    ContributorAuthor

    If this gets implemented, could you also include db.trace as in LXD to facilitate dqlite debugging (see usage)?

    Is it all about exporting LIBDQLITE_TRACE=1?

  3. MggMuggins commented on Jun 3, 2025

    @MggMuggins
    Contributor

    Yep, that's all that's needed :)

  4. wak327 commented on Oct 1, 2026

    @wak327
    Contributor

    @MggMuggins #1570 includes db.trace as you suggested: snap set microcloud db.trace=true, followed by a daemon restart, exports LIBDQLITE_TRACE=1. It sits alongside daemon.debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature, not a bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions