NYUCCL / psiTurk

An open platform for science on Amazon Mechanical Turk.
https://psiturk.org
MIT License
277 stars 140 forks source link

See server.log from dashboard #15

Closed jbmartin closed 11 years ago

johnmcdonnell commented 11 years ago

Provisional plan: push via websockets?

jbmartin commented 11 years ago

Opted for long poll in lieu of websockets (and gevent) to avoid gcc dependency.

gureckis commented 11 years ago

Ok a couple things... on my computer /get_log is definitely being hit on the server from the main "overview" page on startup. In addition, the server log tab doesn't remember its "log level" state between switching between different panels. I'm still working on getting the backend working though just for good measure.

jbmartin commented 11 years ago

I'll try to fix them before we push to master. By the way, we should start using github's tagging feature for formal releases.

johnmcdonnell commented 11 years ago

Is that different from a regular git tag? On Jul 27, 2013 12:46 AM, "Jay B. Martin" notifications@github.com wrote:

I'll try to fix them before we push to master. By the way, we should start using github's tagging feature for formal releases.

— Reply to this email directly or view it on GitHubhttps://github.com/NYUCCL/psiTurk/issues/15#issuecomment-21657242 .

gureckis commented 11 years ago

Interesting discovery: If log level in config file is set to "debug" (lowest level) TONS of logging information is generated because Flask shares the logging system. Thus, if we plan to use the logging library we are going to need to treat the log level serious and perhaps not buffer everything, treat it instead as a config option that can be set using the dropdown on the log panel of the dashboard. I can definitely hook things up so that the log_level flag isn't simply an option the /get_log but i guess Jay should actually read the current loglevel variable from the config file when starting up the dashboard.

johnmcdonnell commented 11 years ago

Now the plan is to have a button that opens this in Console.app on a Mac or a terminal on Linux.

jbmartin commented 11 years ago

front-end is finished. just needs server to launch console.app.

johnmcdonnell commented 11 years ago

Oh whoa, I thought I pushed this but must have lost the code somewhere, I'll have to write it again.

On Mon, Jul 29, 2013 at 3:41 AM, Jay B. Martin notifications@github.comwrote:

front-end is finished. just needs server to launch console.app.

— Reply to this email directly or view it on GitHubhttps://github.com/NYUCCL/psiTurk/issues/15#issuecomment-21703832 .

johnmcdonnell commented 11 years ago

Okay rewritten, tested, and pushed.

On Mon, Jul 29, 2013 at 3:44 AM, John McDonnell jmcdon10@gmail.com wrote:

Oh whoa, I thought I pushed this but must have lost the code somewhere, I'll have to write it again.

On Mon, Jul 29, 2013 at 3:41 AM, Jay B. Martin notifications@github.comwrote:

front-end is finished. just needs server to launch console.app.

— Reply to this email directly or view it on GitHubhttps://github.com/NYUCCL/psiTurk/issues/15#issuecomment-21703832 .