dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 439 forks source link

daemon.log is getting bigger every second? #793

Open DamirPecnik opened 9 years ago

DamirPecnik commented 9 years ago

I have a problem i set the daemon to run my builds but the log file is being populated every few seconds and no builds are issued is this normal or is a bug because in no time the log file is in GB size big?

It writes this: .[2015-02-11 19:40:04] DaemoniseCommand.INFO: Finding builds to process [] [] [2015-02-11 19:40:04] DaemoniseCommand.INFO: Found 0 builds [] [] [2015-02-11 19:40:04] DaemoniseCommand.INFO: Finished processing builds. [] [] .[2015-02-11 19:40:09] DaemoniseCommand.INFO: Finding builds to process [] [] [2015-02-11 19:40:09] DaemoniseCommand.INFO: Found 0 builds [] [] [2015-02-11 19:40:09] DaemoniseCommand.INFO: Finished processing builds. [] [] .[2015-02-11 19:40:15] DaemoniseCommand.INFO: Finding builds to process [] [] [2015-02-11 19:40:15] DaemoniseCommand.INFO: Found 0 builds [] [] [2015-02-11 19:40:15] DaemoniseCommand.INFO: Finished processing builds. [] [] .

tvbeek commented 9 years ago

I never take a look to the log file, I see that it is cleared after a restart. And because it at least once a week I never had a problem with it. But my log file is deamon.log and not .php Are you sure that you have a .php file with the log? Maybe it is a good idea to create a cleanup option for it.

DamirPecnik commented 9 years ago

I meant daemon.log sorry for misspelling.

tvbeek commented 9 years ago

Is your log file really a size of GB? Because I only have a couple of mb for a week (less then 50) We still need to have a way to change this. Maybe we can logrotate for this part.

DamirPecnik commented 9 years ago

Yeah its in GB as it writes every 5 seconds that line above! I have disabled it and using cron for the Jobs!

mavimo commented 9 years ago

Can you try to comment line 103 in RunCommand class and check if this "solve" your issue?