search for: log_item

Displaying 12 results from an estimated 12 matches for "log_item".

2023 Jul 03
0
[PATCH] Add option --log-after to log after moving file into place
...and then sent to stderr after that. */ if (am_daemon > 0 && code != FCLIENT) code = FLOG; + } else if (code == FLOG_AFTER) { + code = FLOG; } else if (send_msgs_to_gen) { assert(!is_utf8); /* Pass the message to our sibling in native charset. */ @@ -813,6 +816,12 @@ void log_item(enum logcode code, struct file_struct *file, int iflags, const cha { const char *s_or_r = am_sender ? "send" : "recv"; + if (code == FLOG_AFTER) { + if (logafter_format && *logafter_format) + log_formatted(FLOG_AFTER, logafter_format, s_or_r, file, NULL, iflags,...
2008 Aug 20
0
Problem with exact moment of issuing transfer log entry for a [recv] action
...cv] log entries is explicitly meaningless. --- rsync-3.0.3.orig/receiver.c 2008-08-20 16:28:41.000000000 +0400 +++ rsync-3.0.3/receiver.c 2008-08-20 16:33:06.000000000 +0400 @@ -678,8 +678,6 @@ recv_ok = receive_data(f_in, fnamecmp, fd1, st.st_size, fname, fd2, F_LENGTH(file)); - log_item(log_code, file, &initial_stats, iflags, NULL); - if (fd1 != -1) close(fd1); if (close(fd2) < 0) { @@ -719,6 +717,7 @@ if (remove_source_files || inc_recurse || (preserve_hard_links && F_IS_HLINKED(file))) send_msg_int(MSG_SUCCESS, ndx); + log_item(log_code,...
2006 May 13
2
using -v and -q together
...me time ... for example: $ mkdir test1 $ touch test1/foo $ rsync-2.6.0 -avq test1 test2 $ rm -r test2 $ rsync-2.6.8 -avq test1 test2 test1/ test1/fo $ rm -r test2 $ rsync-cvs -avq test1 test2 building file list ... test1/ test1/fo $ rm -r test2 the new output in 2.6.8 comes from the calls to maybe_log_item() and log_item() in send_files() ... one way to fix this would be to update the code around that to check the 'quiet' variable: +++ sender.c @@ extern int verbose; +extern int quiet; @@ send_files() if (!(iflags & ITEM_TRANSFER)) { + if (!quiet) maybe_log_item(file,?iflags...
2012 Feb 18
4
FADV_DONTNEED support
While going through an old todo list I found that these patches had fallen by the way-side. About a year ago I initiated a discussion[1] with the Linux kernel folks regarding the lack of any useable fadvise support on the kernel side. As a result, I was observing extremely poor performance on my server after backup as executable pages were being swapped out in favor of data waiting to be flushed
2018 Oct 21
4
Disable logging for localhost
Hello Everyone, I am using Zabbix to monitor my Dovecot server, and my logs are filled with lines like this: > Oct 21 15:04:46 osaka dovecot[1256]: pop3-login: Aborted login (no auth > attempts in 0 secs): user=<>, rip=127.0.0.1, lip=127.0.0.1, secured, > session=<bWd0nr14SuF/AAAB> > Oct 21 15:05:29 osaka dovecot[1256]: imap-login: Aborted login (no auth > attempts
2018 Oct 22
0
Disable logging for localhost
...re.? Often this is done with regex.? Since you mentioned Zabbix, I'm betting it's that software that generates the reports you would like to stop. It looks like it does have the ability to use a regex to filter logs. https://www.zabbix.com/documentation/4.0/manual/config/items/itemtypes/log_items This regex ought to do the trick and not filter out other error messages (like login failures) that occur on localhost.? Hopefully it gets preserved on one line, not mangled by my mail client: dovecot.*(imap|pop3)-login: Aborted .*rip=127\.0\.0\.\d+, lip=127\.0\.0\.\d+, The "\d+" n...
2016 Jan 21
1
[Bug 11683] New: hang on select when send many files
...2015/12/05-18:53:33 recv 114409 fullbak\n", len=147, is_utf8=0) at log.c:277 #4 0x000000000042299c in log_formatted (code=FLOG, format=<value optimized out>, op=0x45170a "recv", file=0x7f976a8cb360, fname=0x0, iflags=40960, hlink=0x0) at log.c:769 #5 0x0000000000422eaa in log_item (code=FINFO, file=0x7f976a8cb360, iflags=40960, hlink=0x0) at log.c:806 #6 0x0000000000413966 in recv_files (f_in=3, f_out=7, local_name=0x0) at receiver.c:852 #7 0x000000000041d3dc in do_recv (f_in=3, f_out=7, local_name=0x0) at main.c:901 #8 0x000000000041dbbd in do_server_recv (f_in=3, f_out=...
2010 Nov 23
0
[PATCH 2/3] Inform kernel of FADV_DONTNEED hint in sender
...progress(st.st_size); + if (do_fadvise(fd, 0, 0, POSIX_FADV_DONTNEED) != 0) { + rsyserr(FERROR_XFER, errno, + "fadvise failed in sending %s", + full_fname(fname)); + } + log_item(log_code, file, &initial_stats, iflags, NULL); if (mbuf) { -- 1.7.1
2010 Nov 23
0
[PATCH 3/3] Inform kernel of FADV_DONTNEED hint in receiver
...d2, F_LENGTH(file)); + if (do_fadvise(fd2, 0, 0, POSIX_FADV_DONTNEED) != 0) { + rsyserr(FERROR_XFER, errno, + "fadvise failed in writing %s", + full_fname(fname)); + } + log_item(log_code, file, &initial_stats, iflags, NULL); if (fd1 != -1) -- 1.7.1
2010 Feb 12
1
[RFC] add support for fallocate()
...fdef HAVE_FALLOCATE + if (!sparse_files) + /* + * If this fails then either the filesystem does not + * support this feature or we run out of disk space. + */ + do_fallocate(fd2, FALLOC_FL_KEEP_SIZE, 0, F_LENGTH(file)); +#endif /* log the transfer */ if (log_before_transfer) log_item(FCLIENT, file, iflags, NULL); diff --git a/rsync.h b/rsync.h index 731f4fe..b293edc 100644 --- a/rsync.h +++ b/rsync.h @@ -1241,3 +1241,7 @@ int inet_pton(int af, const char *src, void *dst); #ifdef MAINTAINER_MODE const char *get_panic_action(void); #endif + +#ifdef HAVE_FALLOCATE +#include &lt...
2018 Oct 24
1
Disable logging for localhost
...e with > regex.? Since you mentioned Zabbix, I'm betting it's that software > that generates the reports you would like to stop. It looks like it > does have the ability to use a regex to filter logs. > > https://www.zabbix.com/documentation/4.0/manual/config/items/itemtypes/log_items > > This regex ought to do the trick and not filter out other error > messages (like login failures) that occur on localhost.? Hopefully it > gets preserved on one line, not mangled by my mail client: > > dovecot.*(imap|pop3)-login: Aborted .*rip=127\.0\.0\.\d+, > lip=127\....
2006 Jan 30
5
Action Mailer woes
Hi gang, Im having my first stab at ActionMailer and not having any luck. Perhaps someone could help me out. I generated a a mailer called ItemMailer - its purpose is to take some information that I''ve already gathered in a ToDo list form and to mail it out to the person who is nominated for the task In environment.rb I have; ActionMailer::Base.server_settings = { :address =>