Perl 6 - the future is here, just unevenly distributed

IRC log for #webwork, 2012-07-11

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
14:54 aubreyja joined #webwork
14:54 aubreyja joined #webwork
15:49 pstaab_ joined #webwork
15:51 pstaab_ mgage: Mike, Hi.  I'm working on the classlist3 editor, but mainly trying to read existing code.  When there is a debug(" ") command, for example in CourseActions.pm, does this go to a log file?  If so, where?
16:10 pstaab_ mgage:  I figured that I needed to change the debug flag to true and then set the log file, however am still not getting results.
16:18 pstaab_ aubreyja:  Hi, do you have any idea about debugging?
16:28 mgage__ joined #webwork
16:30 pstaab_ mgage:  Maybe you weren't really on yet.
16:32 mgage__ I am now
16:33 mgage__ my computer stays logged in most of the time but I'm out in california right at the moment
16:33 pstaab_ you can probably ignore my other messages.  I'm thinking it's a write permissions problem.
16:33 mgage__ pstaab_: hi
16:33 pstaab_ mgage:  Hi to you.
16:34 mgage__ ok -- I don't have a record of what you typed in earlier --I just turned my laptop on -- (there is a record at home when I get back)
16:34 pstaab_ I've been trying to get debug information out.  I'm working on the web services back end to the classlist3 editor.
16:35 mgage__ David is house sitting for me but he's traveling back to waterloo today for a meeting about his research -- so he probably won't be available until Friday
16:35 mgage__ ok --
16:35 pstaab_ Okay.  I just got an email from him last night.  Maybe I'll wait til he's back on.
16:37 mgage__ he might be on tonight -- but it's a three hour drive and I'm not sure what time he is traveling.  I can help a little with the debug messages
16:39 pstaab_ I'm just trying to get the debug messages active.  I set the debug enable constant (WeBWorK::Constants::WEBWORK_DIRECTORY=1) and the corresponding log file, but I'm wondering if my actual problem is the write permissions on my server.  I'm using David's DMG on my mac now.
16:41 mgage__ that could be -- make sure that _www has write permissions in the directory where you have the log file.
16:42 mgage__ (assuming _www is running the webserver -- that was the default on my machine)
16:42 mgage__ you can also create the log file by hand to help out.
16:45 pstaab_ Everything is writeable by everyone (I figure that's okay on my machine), but no luck.  There an error that says "Unable to open log files" when I start the web server.  I wonder if this is related.
16:49 mgage__ probably not -- that is likely the logs defined in webwork2/logs  -- that directory webwork2/logs needs to be writable by the webserver (that's a known glitch -- it doesn't always get set automatically)
16:51 mgage__ what address did you use for the logfile in Constants.pm
16:51 pstaab_ Do you mean path?  If so, I used $WeBWorK::Debug::Logfile = $WeBWorK::Constants::WEBWORK_DIRECTORY . "/logs/debug.log";
16:55 mgage__ I wonder where WEBWORK_DIRECTORY  is defined --- for a test try   ..... = "/Desktop/debug.log" and see if it gets printed to your desktop
16:58 pstaab_ I did "/Users/pstaab/Desktop/debug.log", and gave it permissions, but no luck.
16:59 mgage__ ok -- that's even better  --- hmmmm    webwork_directory should be defined in webwork.apache2-config but I haven't checked to be sure that it actually is defined.
17:00 mgage__ the next question is which .pm file are you trying to get error messages out of -- it's possible that the debug system wasn't hooked up in the webworkwebservice files.
17:01 mgage__ by the way -- I did a fair amount of reworking of the debug reporting system for the PG files recently -- the work is in pg-dev on openwebwork and on mgage (probably better to use the mgage repo so that I can fix any bugs quickly)
17:01 pstaab_ I'm using CourseActions.pm (this might be David's file).  It has Debug included and there are some debug commands scattered throughout,.
17:01 mgage__ let me look
17:02 pstaab_ I'm using the code from webwork2-dev  (I last updated it a couple of weeks ago).
17:03 mgage__ it's had some modifications -- it won't hurt to update it again -- if you have done the sites.conf and localoverride files right you won' t even have to redo the config files
17:03 mgage__ it will hurt even less to update the pg-dev files -- just use the openwebwork repos if you are pointed to them -- I brought them in sync with mine just before we came out here.
17:04 pstaab_ Okay.  I found the apache error log and it doesn't seem to be trying to write to debug.log at all, so maybe grabbing some updated code will help.
17:20 mgage__ brb
17:20 pstaab_ Mike, no luck so far.  I turned the flags for the debug inside of the CourseActions.pm file.  This probably isn't the best place.  Is there a global location to set these?
17:33 pstaab_ mike, I've got it now.  I think I set the constants in the wrong place.
17:35 mgage__ ok -- glad it's working
17:36 mgage__ I think you can set them right in CourseActions.pm file if you want  just use the full name of the variable.
17:37 pstaab_ I tried that and it didn't work.  I set them in the Constants.pm file, and now I am getting debug info, however, I'm not seeing what I'm expecting, but getting closer.
17:54 mgage__ it could be that the Constants.pm assignment gets read afterwards.
17:58 mgage__ I'm going to be on a web conference -- so I might not be responding quickly for the next hour or so
17:58 pstaab_ My new problem is that I'm only getting debug info from the CourseEnvirnoment.pm file with the line: debug __PACKAGE__, ": deprecated four-argument form of new() used.\n";  (line 109).
17:59 pstaab_ No problem.  I'll keep hacking away.  I'm learning a lot about all the code poking around like this.
18:01 mgage__ yeah -- I haven't hacked this particular section recently -- so I have to look to -- you can always use warn "......" which _should_ send messages to the apache error log.  You can use that to debug, debug.  for example   warn "current setting of debug switch", WeBWorK::Debug::Enabled;
18:01 pstaab_ good idea
18:01 mgage__ ok -- here goes the web conference
18:01 mgage__ ty
18:01 mgage__ ttyl
18:04 mgage__ aubreyja: headed for the webconference -- it's taking  awhile for collaborate to load
18:05 aubreyja hi - just got on
18:05 pstaab_ How you doing Jason
18:08 aubreyja Hi Peter - good - how's it going?
18:09 pstaab_ Doing well, trying to hack some code here and Mike was helping me figure out why the debug command wasn't working.
18:09 mgage__ here we go -- collaborate takes forever to start up (5 minutes?)
20:08 mgage__ joined #webwork
21:00 djun joined #webwork
21:01 djun hi all
21:01 djun sorry I missed the conference call this morning. I had another physical meeting
21:55 djun joined #webwork
22:04 djun_ joined #webwork

| Channels | #webwork index | Today | | Search | Google Search | Plain-Text | summary