| OLD | NEW |
| 1 # Copyright (C) 2011 Google Inc. All rights reserved. | 1 # Copyright (C) 2011 Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 If you don't need these features, use multiprocessing.Pool or concurrency.future
s | 38 If you don't need these features, use multiprocessing.Pool or concurrency.future
s |
| 39 intead. | 39 intead. |
| 40 | 40 |
| 41 """ | 41 """ |
| 42 | 42 |
| 43 import cPickle | 43 import cPickle |
| 44 import logging | 44 import logging |
| 45 import multiprocessing | 45 import multiprocessing |
| 46 import Queue | 46 import Queue |
| 47 import sys | 47 import sys |
| 48 import time | |
| 49 import traceback | 48 import traceback |
| 50 | 49 |
| 51 | 50 |
| 52 from webkitpy.common.host import Host | 51 from webkitpy.common.host import Host |
| 53 from webkitpy.common.system import stack_utils | 52 from webkitpy.common.system import stack_utils |
| 54 | 53 |
| 55 | 54 |
| 56 _log = logging.getLogger(__name__) | 55 _log = logging.getLogger(__name__) |
| 57 | 56 |
| 58 | 57 |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 | 321 |
| 323 class _WorkerLogHandler(logging.Handler): | 322 class _WorkerLogHandler(logging.Handler): |
| 324 | 323 |
| 325 def __init__(self, worker): | 324 def __init__(self, worker): |
| 326 logging.Handler.__init__(self) | 325 logging.Handler.__init__(self) |
| 327 self._worker = worker | 326 self._worker = worker |
| 328 self.setLevel(worker.log_level) | 327 self.setLevel(worker.log_level) |
| 329 | 328 |
| 330 def emit(self, record): | 329 def emit(self, record): |
| 331 self._worker.log_messages.append(record) | 330 self._worker.log_messages.append(record) |
| OLD | NEW |