Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make up2date logfile configurable (or log to mrepo log) #31

Open
fff7878 opened this issue Oct 25, 2011 · 4 comments
Open

Make up2date logfile configurable (or log to mrepo log) #31

fff7878 opened this issue Oct 25, 2011 · 4 comments

Comments

@fff7878
Copy link

fff7878 commented Oct 25, 2011

Hello,
Each time I launch mrepo (version 0.8.7), a log file named /root/up2date.log is created. It contains the following:
[root~]# cat /root/up2date.log
[Mon Oct 24 21:00:09 2011] up2date logging into up2date server
[Mon Oct 24 21:00:16 2011] up2date successfully retrieved authentication token from up2date server
[Mon Oct 24 21:00:41 2011] up2date logging into up2date server
[Mon Oct 24 21:00:48 2011] up2date successfully retrieved authentication token from up2date server

What do I have to configure to get rid of this file?

Thanks in advance,

FFF7878

@dagwieers
Copy link
Owner

According to the up2date code, it checks if /var/log/up2date is writable. If it does not have write-access, it dumps its logging into ~/up2date.log.

In fact we could make this configurable for those users that like to put it somewhere else.

mental note: cfg['logFile']

@dagwieers
Copy link
Owner

BTW I noticed you are running as root, so in this case you probably need to touch /var/log/up2date

I guess we can fix the code to create the file if it doesn't exist.

@fff7878
Copy link
Author

fff7878 commented Oct 27, 2011

Thanks a lot, issue corrected.
I didn't took the time to look in up2date code.
It could be cool to configure the path, so that mrepo logs and up2date logs are in the same file.

@fff7878 fff7878 closed this as completed Oct 27, 2011
@dagwieers dagwieers reopened this Oct 27, 2011
@dagwieers
Copy link
Owner

I still like to keep this issue as a feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants