[yast-devel] Snapper destructor
Hello, when I issue snapper commands sometime the program leaves a logfile in CWD called "Snapper destructor" with contents like 2012-08-12 00:01:01 MIL libsnapper(725) Snapper.cc(~Snapper):85 - Snapper destructor 2012-08-12 01:01:01 MIL libsnapper(597) Snapper.cc(~Snapper):85 - Snapper destructor 2012-08-12 02:01:01 MIL libsnapper(1232) Snapper.cc(~Snapper):85 - Snapper destructor 2012-08-12 03:01:01 MIL libsnapper(634) Snapper.cc(~Snapper):85 - Snapper destructor 2012-08-12 04:01:02 MIL libsnapper(596) Snapper.cc(~Snapper):85 - Snapper destructor 2012-08-13 22:01:01 MIL libsnapper(549) Snapper.cc(~Snapper):85 - Snapper destructor I'm starting to get annoyed by these files. How come they are produced and how can I disable them? $ snapper --version snapper 0.0.13 $ uname -a Linux irvine 3.4.8-1-ARCH #1 SMP PREEMPT Thu Aug 9 21:21:22 CEST 2012 x86_64 GNU/LINUX Thanks, -- Erik Westrup <erik.westrup@gmail.com> (+46) 0738-286060 | 2r.se Lagerbrings väg 8E, SE-22460 Lund, Sweden ----------------------------------------- This e-mail is encrypted with 2ROT-13. -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
On Mon, Aug 13, 2012 at 11:03:44PM +0200, Erik Westrup wrote:
Hello,
when I issue snapper commands sometime the program leaves a logfile in CWD called "Snapper destructor" with contents like
Is the file really called "Snapper destructor" or something like "snapper.log"? What are the CWDs you see that file? Do you use the command line tool snapper or the yast gui?
2012-08-12 00:01:01 MIL libsnapper(725) Snapper.cc(~Snapper):85 - Snapper destructor 2012-08-12 01:01:01 MIL libsnapper(597) Snapper.cc(~Snapper):85 - Snapper destructor 2012-08-12 02:01:01 MIL libsnapper(1232) Snapper.cc(~Snapper):85 - Snapper destructor 2012-08-12 03:01:01 MIL libsnapper(634) Snapper.cc(~Snapper):85 - Snapper destructor 2012-08-12 04:01:02 MIL libsnapper(596) Snapper.cc(~Snapper):85 - Snapper destructor 2012-08-13 22:01:01 MIL libsnapper(549) Snapper.cc(~Snapper):85 - Snapper destructor
From the periodic times it seems likely that the file is created by the hourly cron job.
I'm starting to get annoyed by these files. How come they are produced and how can I disable them?
It will need more investigation to say that. The log message itself is clear but it should be contained in /var/log/snapper.log (when snapper is called as root but that's the only reasonable use currently). And if for some reason logging happens to another file there should be much more log messages, e.g. from the constructor. Can you provide the file /var/log/snapper.log so we can check whether the other log entries are there? Regards, Arvin -- Arvin Schnell, <aschnell@suse.de> Senior Software Engineer, Research & Development SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
On Tue 2012-08-14, Arvin Schnell wrote:
On Mon, Aug 13, 2012 at 11:03:44PM +0200, Erik Westrup wrote:
Hello,
when I issue snapper commands sometime the program leaves a logfile in CWD called "Snapper destructor" with contents like
Is the file really called "Snapper destructor" or something like "snapper.log"? What are the CWDs you see that file? Do you use the command line tool snapper or the yast gui?
Yes it's called "Snaapper destructor." I've tried to find out when these are created to verify my memories that the files is created in CWD and not in $HOME (which is CWD most of the time for me atm) but I've not succeded in this. I use the cli tool. I forgot to mention -- this is not on my OpenSuse box but my Arch Linux computer.
Can you provide the file /var/log/snapper.log so we can check whether the other log entries are there?
Attached. -- Erik Westrup <erik.westrup@gmail.com> (+46) 0738-286060 | 2r.se Lagerbrings väg 8E, SE-22460 Lund, Sweden ----------------------------------------- This e-mail is encrypted with 2ROT-13.
On Tue, Aug 14, 2012 at 05:14:07PM +0200, Erik Westrup wrote:
On Tue 2012-08-14, Arvin Schnell wrote:
On Mon, Aug 13, 2012 at 11:03:44PM +0200, Erik Westrup wrote:
Hello,
when I issue snapper commands sometime the program leaves a logfile in CWD called "Snapper destructor" with contents like
Is the file really called "Snapper destructor" or something like "snapper.log"? What are the CWDs you see that file? Do you use the command line tool snapper or the yast gui?
Yes it's called "Snaapper destructor." I've tried to find out when these are created to verify my memories that the files is created in CWD and not in $HOME (which is CWD most of the time for me atm) but I've not succeded in this. I use the cli tool. I forgot to mention -- this is not on my OpenSuse box but my Arch Linux computer.
Can you provide the file /var/log/snapper.log so we can check whether the other log entries are there?
Thanks, but the log is from another time period. Anyway, since you use Arch Linux I suppose you have compiled snapper from the sources. Please try the latest version with the fix I added today. Regards, Arvin -- Arvin Schnell, <aschnell@suse.de> Senior Software Engineer, Research & Development SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
On Tue 2012-08-14, Arvin Schnell wrote:
Thanks, but the log is from another time period.
Oh, sorry!
Anyway, since you use Arch Linux I suppose you have compiled snapper from the sources. Please try the latest version with the fix I added today.
I've compiled and installed that version now. I'll report back if I still get these files. -- Erik Westrup <erik.westrup@gmail.com> (+46) 0738-286060 | 2r.se Lagerbrings väg 8E, SE-22460 Lund, Sweden ----------------------------------------- This email is encrypted with 2ROT-13. -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
On Mon, Aug 13, 2012 at 11:03:44PM +0200, Erik Westrup wrote:
Hello,
when I issue snapper commands sometime the program leaves a logfile in CWD called "Snapper destructor" with contents like
2012-08-12 00:01:01 MIL libsnapper(725) Snapper.cc(~Snapper):85 - Snapper destructor 2012-08-12 01:01:01 MIL libsnapper(597) Snapper.cc(~Snapper):85 - Snapper destructor 2012-08-12 02:01:01 MIL libsnapper(1232) Snapper.cc(~Snapper):85 - Snapper destructor 2012-08-12 03:01:01 MIL libsnapper(634) Snapper.cc(~Snapper):85 - Snapper destructor 2012-08-12 04:01:02 MIL libsnapper(596) Snapper.cc(~Snapper):85 - Snapper destructor 2012-08-13 22:01:01 MIL libsnapper(549) Snapper.cc(~Snapper):85 - Snapper destructor
I'm starting to get annoyed by these files. How come they are produced and how can I disable them?
Now I have an idea what is going wrong. In that case the file is only be created when snapper reports an error. Maybe you can verify that. I'll improve the code for the next release. Regards, Arvin -- Arvin Schnell, <aschnell@suse.de> Senior Software Engineer, Research & Development SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (2)
-
Arvin Schnell
-
Erik Westrup