I am having problems with the Benchmark function in Dbman. If I set $db_benchmark = 0; the script flags the error routine but doesn't give a reason for the error. If I set $db_benchmark = 1; the Benchmark data is not printed. If I set $db_benchmark = 0; an error is generated - Dbman still executes but the debugging info is generated with no indication of what caused the error. In either case, if I turn debugging off ($db_debug = 0;) no error is produced and no Benchmark data is printed. I have checked and the Benchmark module is included in the Perl installation on the server. Anyone had a similar problem?
Feb 5, 2001, 7:57 PM
Enthusiast (720 posts)
Feb 5, 2001, 7:57 PM
Post #2 of 6
Views: 3677
Are you uncommenting/commenting the line above?
# use Benchmark; # Uncomment this line if benchmarking is used.
$db_benchmark = 0;- Mark
Astro-Boy!!
http://www.zip.com.au/~astroboy/
Code:
# Display Benchmarking Information (1 = Yes, 0 = No). # use Benchmark; # Uncomment this line if benchmarking is used.
$db_benchmark = 0;
Astro-Boy!!
http://www.zip.com.au/~astroboy/
Feb 6, 2001, 4:36 PM
New User (4 posts)
Feb 6, 2001, 4:36 PM
Post #5 of 6
Views: 3663
I couldn't find - use Benchmark; - in the config file so I added it under - $db_benchmark = 1; - Now the script displays the Benchmark info but also displays the error info unless I set - $db_debug = 0; - ??
I downloaded a fresh copy of Dbman to see if I had accidently erased the use Benchmark; line but none existed. Is this command added to support only some server configuations?
I downloaded a fresh copy of Dbman to see if I had accidently erased the use Benchmark; line but none existed. Is this command added to support only some server configuations?