Expand the log pane automatically if you click the log pane on the query editor's the query result area.