Log file syntax

115 views
Skip to first unread message

Bernstein, Gary

unread,
Mar 1, 2012, 9:49:26 AM3/1/12
to repo...@googlegroups.com
I pulled an updated version of reposado this morning and discovered the "new" --log option is a requirement for repo_sync.

I changed the line in my nightly script to include it:

/usr/local/reposado/repo_sync --log=/Library/Logs/RepoSync.log

I am not finding that file being created any where. Do I have the syntax correct?

Thanks
-Gary

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 -- "The reward for work well done is the opportunity to do more."

 -- "I tried, but it didn't work" is a lot better than "I wish I'd tried."

        Gary R. Bernstein
Interim Assistant Director of FAA IT Services
College of Fine and Applied Arts
University of Illinois - Urbana-Champaign
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Greg Neagle

unread,
Mar 1, 2012, 9:57:38 AM3/1/12
to repo...@googlegroups.com
On Mar 1, 2012, at 6:49 AM, Bernstein, Gary wrote:

I pulled an updated version of reposado this morning and discovered the "new" --log option is a requirement for repo_sync.

It is not a requirement. It is an option.


I changed the line in my nightly script to include it:

/usr/local/reposado/repo_sync --log=/Library/Logs/RepoSync.log

I am not finding that file being created any where.

I hope you looked at /Library/Logs/RepoSync.log.

Do I have the syntax correct?

Yes. Did you update all of the reposado components? The actual log writing is done by code in reposadolib/reposadocommon.py, so if you didn't update that, no log would be written. Also, /Library/Logs must be writable by whatever user you run repo_sync as.

-Greg


Thanks
-Gary


Bernstein, Gary

unread,
Mar 1, 2012, 11:08:27 AM3/1/12
to repo...@googlegroups.com
It appears that reposadolib/reposadocommon.pyc reposadolib/__init__.pyc and  had not been removed. I manually removed them and a) the log file is know longer required and the logs are showing up.

Thanks
-Gary
Reply all
Reply to author
Forward
0 new messages