Cron is Generating HUGE emails!

Everytime my cron.php runs it generates an email sent from the root user to the default domain account email address which ends up created many gigabytes of email in the /mail/new folder of the domain account (Cpanel) .

The email subject line is the crontab line:

Cron cd /home/sugar/public_html/cms && /usr/bin/php-cli -f cron.php 2>&1

The email contents looks like a huge dump of Sugar configuration information and data. 26MB is the filesize of each email! They are huge. Here’s a sample of the first few and last few lines. It looks like it’s a dump of the entire database or something. What the heck what cause this?

Array
(
[id] => a5899bbc-e917-63a5-c010-55ea81e93c41
[related_id] => 860da740-6ad8-8c20-393f-55fd9bc91974
[module] => Cases
[related_module] => Tasks
[related_bean] => Task Object
(
[field_name_map] => Array
(
[id] => Array
(
[name] => id
[vname] => LBL_ID
[type] => id
[required] => 1
[reportable] => 1
[comment] => Unique identifier
)

                [name] => Array
                    (
                        [name] => name
                        [vname] => LBL_SUBJECT
                        [dbType] => varchar
                        [type] => name
                        [len] => 50
                        [unified_search] => 1
                        [full_text_search] => Array
                            (
                                [boost] => 3
                            )

                        [importable] => required
                        [required] => true
                    )

                [date_entered] => Array
                    (
                        [name] => date_entered
                        [vname] => LBL_DATE_ENTERED
                        [type] => datetime
                        [group] => created_by_name
                        [comment] => Date record created
                        [enable_range_search] => 1
                        [options] => date_range_search_dom
                    )

— last few lines —

                                    (
                                        [process_record] => 0
                                        [before_retrieve] => 0
                                        [after_retrieve] => 0
                                        [before_relationship_add] => 0
                                        [after_relationship_add] => 1
                                    )

                                [relDepth] => 0
                                [rel_fields_before_value] => Array
                                    (
                                        [account_id] => 4bec7ff5-2dfb-f9e4-37d4-55ea81d07a7b
                                        [bug_id] => 
                                        [task_id] => 
                                        [note_id] => 
                                        [meeting_id] => 
                                        [call_id] => 
                                        [email_id] => 
                                    )

                            )

                    )

                [rows:protected] => Array
                    (
                    )

                [loaded:protected] => 1
                [relationship_fields:protected] => Array
                    (
                    )

                [tempBeans:protected] => Array
                    (
                    )

            )

    )

[link] => 
[relationship] => case_tasks

) (
[process_record] => 0
[before_retrieve] => 0
[after_retrieve] => 0
[before_relationship_add] => 0
[after_relationship_add] => 1
)

                                [relDepth] => 0
                                [rel_fields_before_value] => Array
                                    (
                                        [account_id] => 4bec7ff5-2dfb-f9e4-37d4-55ea81d07a7b
                                        [bug_id] => 
                                        [task_id] => 
                                        [note_id] => 
                                        [meeting_id] => 
                                        [call_id] => 
                                        [email_id] => 
                                    )

                            )

                    )

                [rows:protected] => Array
                    (
                    )

                [loaded:protected] => 1
                [relationship_fields:protected] => Array
                    (
                    )

                [tempBeans:protected] => Array
                    (
                    )

            )

    )

[link] => 
[relationship] => case_tasks

)

I determined what is happening is on a Cpanel server, by default, the amount of a cron job is emailed to the default domain email account. So I just had to add after cron.php > cron.log 2>&1 to pipe the output to a log instead of an email. But at 26MB per email, it only takes 40 hours to fill the hard drive so the amount of the cron get very very large for some reason. It’s just too fricking huge to even begin determining WHY thought. Ugh.