Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Jolly Roger Newsgroups: comp.sys.mac.system Subject: Re: Yosemite and /var/log/cups/page_log Date: 17 Dec 2014 22:26:31 GMT Organization: People for the Ethical Treatment of Pirates Lines: 72 Message-ID: References: <1lwuil6.ppwdyg1dzq41gN%dempson@actrix.gen.nz> X-Trace: individual.net z6Z7qBCiOAQUSXOEYkfnyA+wxbb0mYxCFcj17AIqRCqPHhgvgR Cancel-Lock: sha1:3GmRphpzCUnqKaXIRg4j1E2pg8Q= X-Face: _.g>n!a$f3/H3jA]>9pN55*5<`}Tud57>1Y%b|b-Y~()~\t,LZ3e up1/bO{=-) User-Agent: slrn/1.0.1 (Darwin) Xref: csiph.com comp.sys.mac.system:67687 On 2014-12-17, David Empson wrote: > Jolly Roger wrote: > >> I just restored a copy of /etc/cups from before the upgrade and don't >> see any obvious differences in cupsd.conf, cups-files.conf, or >> printers.conf. >> >> I'm starting to suspect this may be a Yosemite issue. Anyone else seeing >> this? > > I'm using default OS X configuration for CUPS (never bothered looking > inside the files before), have done some printing since upgrading to > Yosemite (e.g. I can see a list of completed jobs in the print queue), > and I also have a zero length /var/log/cups/page_log. Its modification > time appears to be around the point I installed Yosemite. > > My /etc/cups/cups-files.conf includes this line: > > PageLog /private/var/log/cups/page_log Mine too. > My /etc/cups/cupsd.conf includes this line: > > PageLogFormat > > With no format string, perhaps this suppresses the log output? Mine too. Apparently in my haste earlier, I misread the diff report, which outlined this change! Thank you for pointing this out to me! > The same line appears in my /etc/cups/cups.conf.default, but there is no > "PageLogFormat" at all in my /etc/cups/cups.conf.pre-update (which dates > back to when I installed Mavericks). > > I suspect this means my Mavericks system would have been logging pages > due to the default page log format being used (I don't have a clone > backup of it handy to check, which might not have that folder anyway), > but the blank PageLogFormat in Yosemite probably means that all output > to that file is suppressed, even though the file is being created. > > It appears this was a deliberate choice by Apple. If so, an odd one - it > would make more sense to use PageLog with no parameter, which disables > page log generation, and omit the PageLogFormat line, allowing the > default format to be used if someone wanted to enable page logging > again. It is strange that they would do it that way rather than the way you describe, which is how I would probably go about it myself. I wonder why they bothered to disable it at all, considering you still get a list of completed jobs elsewhere, and even in the GUI layer. I would prefer to keep logging print jobs to an easily-accessible log file because I have a script that runs periodically that grabs the last line of the log to determine how long it's been since I last printed anything. If I haven't printed anything in more than a couple months, it reminds me to print something (to avoid allowing the heads to dry out). The script reported the log was empty. I just commented the PageLogFormat line in cupsd.conf, restarted the org.cups.cupsd launch daemon, and sure enough, logging has resumed! Thanks again, David! : ) -- E-mail sent to this address may be devoured by my ravenous SPAM filter. I often ignore posts from Google. Use a real news client instead. JR