Skip Menu |

This queue is for tickets about the Games-Multiplayer-Manager CPAN distribution.

Report information
The Basics
Id: 32070
Status: resolved
Priority: 0/
Queue: Games-Multiplayer-Manager

People
Owner: Nobody in particular
Requestors: zpmorgan [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.01
Fixed in: (no value)



Subject: Unable to enable debug messages
The following line from the POD does not create a manager with debug messages enabled. The constructor always sets debug to false. my $manager = new Games::Multiplayer::Manager (debug => 1);
Subject: Re: [rt.cpan.org #32070] Unable to enable debug messages
Date: Thu, 03 Jan 2008 21:53:56 -0500
To: bug-Games-Multiplayer-Manager [...] rt.cpan.org
From: Noah Petherbridge <noah.petherbridge [...] gmail.com>
It should allow you to enable debug mode. The code is: sub new { my $proto = shift; my $class = ref($proto) || $proto; my $self = { debug => 0, '_games' => {}, '_handlers' => {}, @_, }; bless ($self,$class); return $self; } The @_ in $self should accept values passed to the function, therefore sending "debug => 1" should override the default value of "debug => 0" (a good handful of other modules act this way too). I'm fairly certain I used debug mode when building the module so it should work. Debug mode only prints notifications of errors within the module, it doesn't give a verbose description of every little thing the module does. It'll print errors like if a game doesn't exist or if you sent an invalid parameter. Zach Morgan via RT wrote: Show quoted text
> Thu Jan 03 16:41:09 2008: Request 32070 was acted upon. > Transaction: Ticket created by ZPMORGAN > Queue: Games-Multiplayer-Manager > Subject: Unable to enable debug messages > Broken in: 1.01 > Severity: Normal > Owner: Nobody > Requestors: ZPMORGAN@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=32070 > > > > The following line from the POD does not create a manager with debug > messages enabled. The constructor always sets debug to false. > > my $manager = new Games::Multiplayer::Manager (debug => 1); > >