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

repair and simplify sync log collection page. #375

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dryo
Copy link

@dryo dryo commented Jul 16, 2023

I'm not sure if tee is included in a standard installation, though.

@CLAassistant
Copy link

CLAassistant commented Jul 16, 2023

CLA assistant check
All committers have signed the CLA.

@dryo
Copy link
Author

dryo commented Jul 16, 2023

Copy link
Contributor

@Thaodan Thaodan left a comment

Choose a reason for hiding this comment

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

Why the changes in the name of the headings?

Copy link
Contributor

@Thaodan Thaodan left a comment

Choose a reason for hiding this comment

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

In general I agree with the changes but there is a better way to do this.

  1. systemctl --user edit msyncd
  2. Paste this into the opened editor:
[Service]
Environment=QTCONTACTS_SQLITE_TRACE=1 
Environment=MSYNCD_LOGGING_LEVEL=8 
Environment=QTCONTACTS_SQLITE_TWCSA_TRACE=1
  1. systemctl --user restart msyncd
  2. journalctl --user --boot --unit msyncd.service
  3. If the --user filter doesn't work try /usr/bin/msyncd instead of --user ---unit msyncd.service

To revert remove rm ~/.config/systemd/user/msyncd.service.d/override.conf

Doing so will ensure that the logfile will only contain output from the msyncd service.

In general calling journalctl to log something from the user session without filters is bad as it contains to much irrelevant information.

@jovirkku
Copy link
Contributor

See this post why to prefer 'tee' to 'cat'.

Copy link
Contributor

@jovirkku jovirkku left a comment

Choose a reason for hiding this comment

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

LGMT.

Copy link
Contributor

@jovirkku jovirkku left a comment

Choose a reason for hiding this comment

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

The proposed changes make sense and look good to me.

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.

4 participants