Skip to content

feat(dashmate): core log file and debug categories - #913

Merged
shumkov merged 30 commits into
v0.24-devfrom
feat/dashmate-core-logs
May 3, 2023
Merged

shumkov merged 30 commits into
v0.24-devfrom
feat/dashmate-core-logs

Conversation

@pshenmic

@pshenmic pshenmic commented Apr 14, 2023 •

Copy link
Copy Markdown
Contributor

Issue being fixed or feature implemented

Change dashcore logging from stdout to external file and put it in the logs folder in dashmate configuration directory.

What was done?

  • added new dashcore core.log log file in ~/.dashmate/logs/<network_name>
  • allow to configure debug categories

How Has This Been Tested?

Locally

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@pshenmic pshenmic added this to the v0.24.0 milestone Apr 14, 2023
Comment thread packages/dashmate/docker-compose.yml Resolved
@pshenmic
pshenmic requested a review from shumkov April 18, 2023 18:27
…re-logs

# Conflicts:
#	packages/dashmate/docker-compose.yml
#	packages/dashmate/src/config/Config.js
@pshenmic
pshenmic requested a review from shumkov May 1, 2023 07:01
@pshenmic

pshenmic commented May 1, 2023

Copy link
Copy Markdown
Contributor Author

Test results:

Empty categories []

  • No log output in docker container stdout
  • No debug log lines found in core.log

Enable few categories ["rpc", "http", "walletdb"]

  • No log output in docker container stdout
  • debug=<category> is added for each one in dash.conf
  • Debug category lines can be seen in core.log

Enable all debug categories ["all"]

  • No log output in docker container stdout
  • debug=1 is added in the dash.conf
  • All debug logs can be found in core.log with all enabled categories

@pshenmic

pshenmic commented May 2, 2023

Copy link
Copy Markdown
Contributor Author

After discussion with @shumkov, we decided to completely remove printtoconsole option and get stdout logs in the docker container back.

@shumkov shumkov left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

@shumkov shumkov changed the title feat(dashmate): add dashcore file logging feat(dashmate): core log file and debug categories May 3, 2023
@shumkov
shumkov merged commit 6206ba5 into v0.24-dev May 3, 2023
@shumkov
shumkov deleted the feat/dashmate-core-logs branch May 3, 2023 04:48
antouhou pushed a commit that referenced this pull request May 11, 2023
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

Successfully merging this pull request may close these issues.

2 participants