~ivi-remix/ivi-remix/linaro-image-tools-old

« back to all changes in this revision

Viewing changes to linaro-media-create

  • Committer: Mike Carifio
  • Date: 2011-09-19 14:45:23 UTC
  • mfrom: (406.1.26 linaro-image-tools)
  • Revision ID: michael.carifio@canonical.com-20110919144523-6dy1ytrggy607o4b
mergeĀ fromĀ linaro-media-create

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
import os
23
23
import sys
24
24
import tempfile
 
25
import logging
25
26
 
26
27
from linaro_image_tools import cmd_runner
27
28
 
95
96
    parser = get_args_parser()
96
97
    args = parser.parse_args()
97
98
 
 
99
    ch = logging.StreamHandler()
 
100
    ch.setLevel(logging.INFO)
 
101
    formatter = logging.Formatter("%(message)s")
 
102
    ch.setFormatter(formatter)
 
103
    logger = logging.getLogger("linaro_image_tools")
 
104
    logger.setLevel(logging.INFO)
 
105
    logger.addHandler(ch)
 
106
 
98
107
    # If --help was specified this won't execute.
99
108
    # Create temp dir and initialize rest of path vars.
100
109
    TMP_DIR = tempfile.mkdtemp()