pimutils / pimutils/vdirsyncer

FR: Split loggers between stdout and stderr

Open
#1,012 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

contributions welcome type: enhancement
Dominant language
Python
Stars
1.9k
Forks
185
Avg merge
11h 49m
Merged PRs (30d)
1

Description

Because I am using vdirsyncer together with https://habilis.net/cronic/ from cron, it would be better if only real errors (and maybe warnings) would get logged to stderr but not INFO messages such as "Syncing <calendar_name>". Because them getting sent to stderr makes cronic (justifiably) interpret them as an error.

I found an example how you might be able to implement that easily: https://stackoverflow.com/a/16066513/119725

  • vdirsyncer version: 0.18.0
  • Python version: 3.9.15
  • operating system: Linux 3.10.0-1160.53.1.el7.x86_64
  • config file: n/a

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating vdirsyncer's logging setup and the code that emits the INFO message "Syncing <calendar_name>". Run the CLI with cron/cronic-like stderr handling, then verify that INFO output goes to stdout while warnings and errors remain on stderr.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.