eZDebug in a cronjob

Author Message

Pesti Pal

Monday 03 March 2008 2:43:54 am

Hi all,

Can anyone tell me why eZDebug doesn't log anithing when it is in a cronjob?

i.e. doesn't work from a cronjob

eZDebug::writeError("logme");

Can this be fixed?

Many thanks

Gaetano Giunta

Monday 03 March 2008 4:22:38 am

This is actually a feature ;)

Try running runcronjobs --help and you should find out that there is a switch to enable logs from cronjobs: -logfiles.

I also recommend using -d to enable debugging of cronjobs.

And yes, I know it should be better documented and possibly even turned to on by default...

cheers
Gaetano

Principal Consultant International Business
Member of the Community Project Board

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:29:42
Script start
Timing: Jan 18 2025 19:29:42
Module start 'layout'
Timing: Jan 18 2025 19:29:42
Module start 'content'
Timing: Jan 18 2025 19:29:42
Module end 'content'
Timing: Jan 18 2025 19:29:42
Script end

Main resources:

Total runtime0.7935 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 588.9453152.6094
Module start 'layout' 0.00750.0044 741.554739.4141
Module start 'content' 0.01190.7800 780.9688522.4688
Module end 'content' 0.79190.0016 1,303.43758.1875
Script end 0.7935  1,311.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3924160.0002
Check MTime0.00130.1650160.0001
Mysql Total
Database connection0.00120.145210.0012
Mysqli_queries0.746494.0615540.0138
Looping result0.00060.0764520.0000
Template Total0.755495.220.3777
Template load0.00210.269120.0011
Template processing0.753394.927620.3766
Template load and register function0.00020.028310.0002
states
state_id_array0.00170.215110.0017
state_identifier_array0.00130.163820.0007
Override
Cache load0.00170.2171170.0001
Sytem overhead
Fetch class attribute can translate value0.00070.088220.0004
Fetch class attribute name0.00160.202530.0005
XML
Image XML parsing0.00060.073120.0003
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00070.0906160.0000
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs