From: Gabriel Goller <g.goller@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox{, -backup, -perl-rs} v2 0/4] Rename/Move logging init helper
Date: Mon, 9 Dec 2024 11:46:02 +0100 [thread overview]
Message-ID: <20241209104606.263045-1-g.goller@proxmox.com> (raw)
To make all the logging init functions easier to use renamed all and moved to
`init` module. Like this we don't have to use a e.g. 'init_pve_logger' function
in a shared helper, which isn't strictly true, as it can be pbs as well.
The is backwards compatible as the old functions have not been removed and are
only deprecated. This also means the first two `proxmox` patches can already be
applied independently of the other ones.
Changelog:
v2:
- rename `stderr_and_tasklog` to `stderr_or_tasklog` as it's more fitting
- add `journald_and_tasklog` fn for pbs_daily_update
proxmox:
Gabriel Goller (2):
log: rename/move init functions
log: add logger for perlmod crates
proxmox-log/src/init.rs | 143 ++++++++++++++++++++++++++
proxmox-log/src/lib.rs | 87 ++++++++--------
proxmox-log/src/pve_task_formatter.rs | 31 ++++++
3 files changed, 220 insertions(+), 41 deletions(-)
create mode 100644 proxmox-log/src/init.rs
create mode 100644 proxmox-log/src/pve_task_formatter.rs
proxmox-backup:
Gabriel Goller (1):
log: use new init functions
pbs-tape/src/bin/pmt.rs | 3 +--
pbs-tape/src/bin/pmtx.rs | 3 +--
proxmox-backup-client/src/main.rs | 4 ++--
proxmox-file-restore/src/main.rs | 3 +--
pxar-bin/src/main.rs | 5 +++--
src/bin/proxmox-backup-api.rs | 3 +--
src/bin/proxmox-backup-debug.rs | 4 ++--
src/bin/proxmox-backup-manager.rs | 3 +--
src/bin/proxmox-backup-proxy.rs | 3 +--
src/bin/proxmox-tape.rs | 4 ++--
src/bin/sg-tape-cmd.rs | 3 +--
11 files changed, 16 insertions(+), 22 deletions(-)
proxmox-perl-rs:
Gabriel Goller (1):
log: use new init function, print to stderr and journald
common/src/logger.rs | 4 +++-
pmg-rs/Cargo.toml | 1 -
pmg-rs/src/lib.rs | 2 +-
pve-rs/Cargo.toml | 1 -
4 files changed, 4 insertions(+), 4 deletions(-)
Summary over all repositories:
18 files changed, 240 insertions(+), 67 deletions(-)
--
Generated by git-murpp 0.7.1
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
next reply other threads:[~2024-12-09 10:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-09 10:46 Gabriel Goller [this message]
2024-12-09 10:46 ` [pbs-devel] [PATCH proxmox v2 1/4] log: rename/move init functions Gabriel Goller
2024-12-09 10:46 ` [pbs-devel] [PATCH proxmox v2 2/4] log: add logger for perlmod crates Gabriel Goller
2024-12-09 10:46 ` [pbs-devel] [PATCH proxmox-backup v2 3/4] log: use new init functions Gabriel Goller
2024-12-09 10:46 ` [pbs-devel] [PATCH proxmox-perl-rs v2 4/4] log: use new init function, print to stderr and journald Gabriel Goller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241209104606.263045-1-g.goller@proxmox.com \
--to=g.goller@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox