Move the log message up a line to make sure it appears before the actual
output.

  R=maruel@chromium.org
  BUG=none
  TEST=none

Review URL: http://codereview.chromium.org/344007

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@30307 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/gclient_utils.py b/gclient_utils.py
index 8b4eeb2..913e8b1 100644
--- a/gclient_utils.py
+++ b/gclient_utils.py
@@ -220,11 +220,11 @@
   while in_byte:
     if in_byte != "\r":
       if print_stdout:
-        sys.stdout.write(in_byte)
         if not print_messages:
           print("\n________ running \'%s\' in \'%s\'"
               % (' '.join(command), in_directory))
           print_messages = True 
+        sys.stdout.write(in_byte)
       if in_byte != "\n":
         in_line += in_byte
     if in_byte == "\n" and filter: