Bug 643 - Too much clutter in submit-logs
Summary: Too much clutter in submit-logs
Status: NEW
Alias: None
Product: Infrastructure
Classification: Unclassified
Component: BuildSystem (show other bugs)
Version: unspecified
Hardware: i586 Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Sysadmin Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 858
  Show dependency treegraph
 
Reported: 2011-04-05 18:23 CEST by Michael Scherer
Modified: 2012-12-22 22:43 CET (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Michael Scherer 2011-04-05 18:23:07 CEST
We currently keep a log of warning and error in /var/lib/schedbot/submit-logs/ . But theses logs are growing and are not rotated. 

[root@valstar schedbot]# du -sh submit-logs/
234M	submit-logs/

While 234 Mo is next to nothing, the issue is they are less and less useful if too bloated.

Most of the file is quite useless :

Deprecated method, use as_file() now at /usr/share/mga-youri-submit/lib/Youri/Submit/Check/Host.pm line 32
error: File /var/lib/schedbot/rpmbuild/SOURCES/mixxx-1.7.0-ffmpeg-headers.patch: No such file or directory
Deprecated method, use as_string now at /usr/lib/perl5/site_perl/5.10.1/Youri/Repository/Mageia.pm line 457
Deprecated method, use as_file() now at /usr/share/mga-youri-submit/lib/Youri/Submit/Action/Send.pm line 45
Deprecated method, use as_file() now at /usr/share/mga-youri-submit/lib/Youri/Submit/Action/Rpminfo.pm line 44
Warning: Can't guess destination: section missing, defaulting to core/release
Deprecated method, use as_string now at /usr/share/mga-youri-submit/lib/Youri/Submit/Check/ACL.pm line 32
Deprecated method, use as_file() now at /usr/share/mga-youri-submit/lib/Youri/Submit/Check/Host.pm line 32
error: File /var/lib/schedbot/rpmbuild/SOURCES/mixxx-1.7.0-ffmpeg-headers.patch: No such file or directory
Deprecated method, use as_string now at /usr/lib/perl5/site_perl/5.10.1/Youri/Repository/Mageia.pm line 457
Deprecated method, use as_file() now at /usr/share/mga-youri-submit/lib/Youri/Submit/Action/Send.pm line 45
Deprecated method, use as_file() now at /usr/share/mga-youri-submit/lib/Youri/Submit/Action/Rpminfo.pm line 44

We do not have the date , and the warning of deprecation do not help much and should be corrected IMHO.

So I propose that :
- we clean warning so $login.err is not filed with useless garbage
- we start to log in a different file each request, so we can later clean them using tidy
- investigate using log4perl in youri so we can configure this 




Reproducible: 

Steps to Reproduce:
Nicolas Vigier 2011-04-17 17:42:26 CEST

Blocks: (none) => 858

Comment 1 Marja Van Waes 2011-10-08 20:14:24 CEST
Any news on this issue?

CC: (none) => marja11

Comment 2 Marja Van Waes 2012-01-11 20:48:57 CET
Pinging. because nothing happened to this report since more than 3 months ago, and it still has the status NEW or REOPENED.

Please set status to ASSIGNED. If for work flow reasons you can't do that, then please put OK on the whiteboard instead.
Manuel Hiebel 2012-01-28 15:23:17 CET

Assignee: mageia-sysadm => sysadmin-bugs

Comment 3 ra oeai 2012-12-22 22:43:54 CET
it looks like a parsing script error that is not debugging 
if file is null, and when it is not finding the file it cannot continue with others, to show time
need to put in the script
DataStamp=$(eval date +%j)
echo $DataStamp

CC: (none) => oeai


Note You need to log in before you can comment on or make changes to this bug.