Ticket #35 (new defect)

Opened 11 months ago

Last modified 9 months ago

stdout output after launch is lost when opening the wx UI

Reported by: mikeal Owned by: jacob
Priority: minor Milestone: future
Component: windmill-admin Version: 0.2-beta
Keywords: Cc:
Dependencies:

Description

Basically if something happens like, the server can't bind the proper port, or something loads improperly when starting the wxUI we never see it.

We need to wrap stdout right when windmill starts and then once the wxUI shell is up dump it all into the shell window.

Change History

  Changed 11 months ago by mikeal

  • priority changed from major to minor
  • version changed from 0.1 to 0.2-beta

  Changed 11 months ago by mikeal

  • milestone changed from triage to 0.2-beta

in reply to: ↑ description   Changed 11 months ago by jacob

Replying to mikeal:

Basically if something happens like, the server can't bind the proper port, or something loads improperly when starting the wxUI we never see it. We need to wrap stdout right when windmill starts and then once the wxUI shell is up dump it all into the shell window.

So are you suggesting that windmill store all the output information when it starts in a dictionary or something then after starting the wxui, all the info is dumped into the log output section?

  Changed 11 months ago by mikeal

  • milestone changed from 0.2-beta to 0.2-release

  Changed 10 months ago by mikeal

What we can do, is when the wxui option is present, replace the sys.stdout and sys.stderr objects with a StringIO instance.

Once the wxui loads up, we can then set sys.stdout and sys.stderr back to sys.stdout and sys.stderr, and dump what's in the StringIO instances in to the wxui.

  Changed 9 months ago by jacob

  • milestone changed from 0.2-release to future
Note: See TracTickets for help on using tickets.