Home
last modified time | relevance | path

Searched refs:logging (Results 1 – 25 of 3894) sorted by relevance

12345678910>>...156

/external/python/cpython3/Lib/test/
Dtest_logging.py22 import logging
23 import logging.handlers
24 import logging.config
91 logger_dict = logging.getLogger().manager.loggerDict
92 logging._acquireLock()
94 self.saved_handlers = logging._handlers.copy()
95 self.saved_handler_list = logging._handlerList[:]
97 self.saved_name_to_level = logging._nameToLevel.copy()
98 self.saved_level_to_name = logging._levelToName.copy()
104 logging._releaseLock()
[all …]
/external/autotest/client/common_lib/cros/manual/
Dcfm_helper.py9 import logging
27 logging.info('---Get the latest chrome log file')
32 logging.exception('Fail to run command %s.', cmd)
34 logging.info('---cmd: %s', cmd)
35 logging.info('---output: %s', output.lower().strip())
46 logging.info('---Get the latest reboot log')
50 logging.exception('Fail to run command %s.', cmd)
52 logging.info('---cmd: %s', cmd)
53 logging.info('---output: %s', output.lower().strip())
67 logging.info('---cmd: cros_config %s', cros_config_args)
[all …]
Daudio_helper.py11 import logging
27 logging.info('---cmd: %s', cmd)
32 logging.exception('Fail to execute %s.', cmd)
35 logging.info('---audio card %s', soundcard)
37 logging.exception('Fail to get sound card, cli=%s.', cmd)
92 logging.exception('Fail to run cli: %s.', cmd)
108 logging.exception(errmsg)
114 logging.info('---Fail to get node for default speaker.')
118 logging.info('---Volume for default speaker are sync for '
122 logging.info('---Volume Check Fail for default speaker: '
[all …]
Dmeet_helper.py9 import logging
26 logging.info('+++Restart chrome')
31 logging.exception(errmsg)
47 logging.info('+++Start meet meeting')
53 logging.info('+++start hangout meeting')
58 logging.exception(errmsg)
60 logging.info('+++Meeting %s joined.', meet_code)
64 logging.exception(errmsg)
84 logging.exception(errmsg)
86 logging.info('+++meet ended')
[all …]
/external/python/cpython2/Lib/test/
Dtest_logging.py22 import logging
23 import logging.handlers
24 import logging.config
62 logger_dict = logging.getLogger().manager.loggerDict
63 logging._acquireLock()
65 self.saved_handlers = logging._handlers.copy()
66 self.saved_handler_list = logging._handlerList[:]
68 self.saved_level_names = logging._levelNames.copy()
70 logging._releaseLock()
75 logging.getLogger("\xab\xd7\xbb")
[all …]
/external/autotest/site_utils/admin_audit/
Dverifiers.py6 import logging
58 logging.info('Host is down; Skipping the verification')
63 logging.debug('Detected storage type: %s', storage_type)
65 logging.debug('Detected storage state: %s', storage_state)
111 logging.info('Servo not initialized; Skipping the verification')
115 logging.debug('USB path: %s', usb)
118 logging.debug('(Not critical) %s', e)
125 logging.info('Starting verification of USB drive...')
132 logging.info('Try run check on DUT side.')
135 logging.info('Try run check on ServoHost side.')
[all …]
/external/autotest/client/tests/iozone/
Dpostprocessing.py11 import os, sys, optparse, logging, math, time
117 logging.info("Results will be stored in %s", output_dir)
200 logger = logging.getLogger()
201 formatter = logging.Formatter("")
203 logging.info("")
204logging.info("TABLE: SUMMARY of ALL FILE and RECORD SIZES Results in MB/se…
205 logging.info("")
206logging.info("FILE & RECORD INIT RE RE RANDOM RANDOM BACKWD RECRE STRIDE …
207logging.info("SIZES (KB) WRITE WRITE READ READ READ WRITE READ WRITE READ …
208logging.info("------------------------------------------------------------------------------------…
[all …]
/external/autotest/server/cros/bluetooth/
Dbluetooth_peer_update.py13 import logging
42 logging.info('executing command %s on peer',cmd)
44 logging.info('exit_status is %s', result.exit_status)
45 logging.info('stdout is %s stderr is %s', result.stdout, result.stderr)
52 logging.error('Error while running cmd %s %s', cmd, e)
71 logging.error('Getting the commit hash failed. Updating the peer %s',
75 logging.debug('commit %s found on peer %s', commit, peer.host)
82 logging.info('copy the file over to the peer')
87 logging.debug('package location is %s', bundle_path)
91 logging.error('copying the file failed %s ', sys.exc_info())
[all …]
Dbluetooth_adapter_audio_tests.py12 import logging
62 logging.debug('ListSources()\n%s', sources)
66 logging.debug('bluez_source device number: %s', self.bluez_source)
68 logging.debug('waiting for bluez_source ready in pulseaudio...')
82 logging.debug('ListSinks()\n%s', sinks)
86 logging.debug('bluez_sink device number: %s', self.bluez_sink)
88 logging.debug('waiting for bluez_sink ready in pulseaudio...')
150 logging.error('The recorded audio file is empty or all zeros.')
189 logging.error('recorded_frequencies: %s, expected_frequencies: %s',
201 logging.info('Channel %d: %s', channel, result)
[all …]
/external/autotest/server/cros/servo/topology/
Dservo_topology.py15 import logging
57 logging.info('Reading servo topology info...')
60 logging.info('The host_info not provided. Skip reading.')
64 logging.debug('Loaded servo topology: %s', self._topology)
66 logging.info('Servo topology loaded successfully.')
71 logging.info('Topology is empty. Skip saving.')
74 logging.info('The host_info_store not provided. Skip saving.')
76 logging.info('Saving servo topology info...')
79 logging.info('Servo topology fail to save data.'
85 logging.info('Servo topology was not changed. Skip saving.')
[all …]
/external/pigweed/pw_cli/py/pw_cli/
Dlog.py16 import logging
42 _LogLevel(logging.CRITICAL, 'bold_magenta', 'CRT', '‼️ '),
43 _LogLevel(logging.ERROR, 'red', 'ERR', '❌'),
44 _LogLevel(logging.WARNING, 'yellow', 'WRN', '⚠️ '),
45 _LogLevel(logging.INFO, 'magenta', 'INF', 'ℹ️ '),
47 _LogLevel(logging.DEBUG, 'blue', 'DBG', '��'),
50 _LOG = logging.getLogger(__name__)
51 _STDERR_HANDLER = logging.StreamHandler()
63 _LOG.setLevel(logging.DEBUG)
75 def _setup_handler(handler: logging.Handler, formatter: logging.Formatter,
[all …]
/external/autotest/client/common_lib/
Dlogging_config.py6 import logging
17 logging.basicConfig(level=logging.DEBUG)
20 class AllowBelowSeverity(logging.Filter):
33 class VarLogMessageFormatter(logging.Formatter):
58 global_level = logging.DEBUG
59 stdout_level = logging.INFO
60 stderr_level = logging.ERROR
69 file_formatter = logging.Formatter(fmt=FILE_FORMAT, datefmt=DATE_FORMAT)
73 console_formatter = logging.Formatter(fmt=CONSOLE_FORMAT,
80 self.logger = logging.getLogger()
[all …]
Dsmogcheck_tpm.py28 import datetime, logging
124 logging.info(' TPM 1.2 Version Info:\n')
125 logging.info(' Chip Version: %d.%d.%d.%d.', vi.version.major,
127 logging.info(' Spec Level: %d', vi.specLevel)
128 logging.info(' Errata Revision: %d', vi.errataRev)
130 logging.info(' TPM Vendor ID: %s', ''.join(vendorId))
132 logging.info(' Vendor Specific data (first 4 bytes in Hex): '
153 logging.info(' TPM Test Results: %s', ''.join(out))
177 logging.info('Attempt to load shared library %s', TSPI_C_LIB)
183 logging.info('Successfully loaded shared library %s', TSPI_C_LIB)
[all …]
Dbarrier.py2 import sys, socket, errno, logging
167 logging.info("tag=%s port=%d timeout=%r",
189 logging.error(error)
195 logging.info("seconds remaining: %d", timeout)
211 logging.warning("Ignoring invalid data from %s: %r",
217 logging.info("new client tag=%s, name=%s", tag, name)
225 logging.warning("client arriving for the wrong barrier: %s != %s",
232 logging.warning("duplicate client")
246 logging.warning("client handshake timeout: (%s:%d)",
251 logging.info("client now waiting: %s (%s:%d)",
[all …]
/external/autotest/client/common_lib/cros/
Dcfm_hangouts_api.py5 import logging
38 logging.info('Reached oobe start page')
50 logging.info('Skipped oobe screen.')
57 logging.info('Is on oobe start page.')
59 logging.info('Is not on oobe start page.')
88 logging.info('Started hangout session: %s', hangout_name)
101 logging.info('Ended hangout session.')
108 logging.info('Is in hangout session.')
110 logging.info('Is not in hangout session.')
118 logging.info('Is ready to start hangout session.')
[all …]
Dcfm_meetings_api.py5 import logging
38 logging.info('Reached meetings landing page.')
46 logging.info('Reached meetings in-call page.')
55 logging.info('Reached oobe page.')
65 logging.info('Skipped oobe screen.')
73 logging.info('Is on oobe start page.')
75 logging.info('Is not on oobe start page.')
90 logging.info('Started meeting session %s', meeting_code)
108 logging.info('Started meeting session: %s', meeting_name)
114 logging.info('Ended meeting session.')
[all …]
/external/autotest/client/site_tests/hardware_Badblocks/
Dhardware_Badblocks.py5 import logging, re, subprocess, threading
57 logging.info('badblocks taking too long---sending SIGKILL')
60 logging.info('%s', e)
67 logging.info('badblocks is waiting on %s', waiton)
84 logging.info(msg)
107 logging.info('badblocks output:')
110 logging.info(lines[0])
111 logging.info(lines[1])
118 logging.info('%s', pattern_info)
121 logging.info('%s', subline)
[all …]
/external/oss-fuzz/infra/cifuzz/
Dclusterfuzz_deployment.py15 import logging
116 logging.info('Trying to downloading previous build %s.', old_commit)
121 logging.info('Done downloading previus build.')
124 logging.info('Build for %s does not exist.', old_commit)
126 logging.error('Could not download build for %s because of: %s',
133 logging.info('Downloading corpus for %s to %s.', target_name, corpus_dir)
137 logging.info('Done downloading corpus. Contains %d elements.',
140 logging.error('Failed to download corpus for target: %s. Error: %s',
157 logging.info('Uploading corpus in %s for %s.', corpus_dir, target_name)
161 logging.info('Done uploading corpus.')
[all …]
/external/autotest/server/cros/storage/
Dstorage_validate.py6 import logging
73 logging.info('Extraction storage info')
121 logging.info('Trying run badblocks on device')
131 logging.debug('run_badblocks=%s', run_badblocks)
146 logging.info('Extraction storage type')
158 logging.info('Found SATA device')
159 logging.debug('Found line => ' + line)
165 logging.info('Found eMMC device, version: %s', version)
166 logging.debug('Found line => ' + line)
170 logging.info('Found NVMe device')
[all …]
/external/autotest/client/cros/audio/
Dcras_dbus_utils.py8 import logging
24 logging.exception(
42 logging.exception(
100 logging.debug('Got NodesChanged signal when loop is running.')
102 logging.debug('count = %d', self._count)
104 logging.debug('Quit main loop')
107 logging.debug('Got NodesChanged signal when loop is not running.'
118 logging.error('Quit main loop because of timeout')
121 logging.debug(
205 logging.debug('Before starting the counter')
[all …]
/external/pigweed/pw_console/py/pw_console/
Dpython_logging.py17 import logging
23 def all_loggers() -> Iterator[logging.Logger]:
25 manager = logging.getLogger().manager # type: ignore[attr-defined]
28 yield logging.getLogger(logger_name)
59 logging.lastResort = logging.FileHandler(log_file)
62 def disable_stdout_handlers(logger: logging.Logger) -> None:
67 if type(handler) == logging.StreamHandler: # pylint: disable=unidiomatic-typecheck
73 loggers_with_no_propagation: Optional[Iterable[logging.Logger]] = None
78 disable_stdout_handlers(logging.getLogger())
80 if logging.lastResort is not None:
[all …]
/external/autotest/server/hosts/
Dservo_host.py17 import logging
233 logging.info(
367 logging.info('Checking ChromeOS image name on usbkey.')
375 logging.debug('Unexpected error occurred on mount usb drive.')
383 logging.info('The image on usbkey is not a test image')
389 logging.debug('Image check compeleted, unmounting the usb drive.')
496 logging.info('Validating image usbkey on servo.')
502 logging.error(e, exc_info=True)
503 logging.error('Unexpected error occurred on get usbkey dev path,'
515 logging.error('%s is reported from "image_usbkey_dev" control'
[all …]
/external/autotest/site_utils/deployment/prepare/
Ddut.py19 import logging
120 logging.info('Attempting reset via servo...')
123 logging.info('Waiting for DUT to come back up.')
137 logging.info('Shutting down %s from via ssh.', host.hostname)
140 logging.info('Unable to shutdown DUT via ssh; %s', str(e))
145 logging.info('Power cycling DUT through servo...')
160 logging.info('Waiting for DUT to come back up.')
174 logging.info("Started to verify battery status")
177 logging.info("Skepping due DUT does not have the battery")
201 logging.info(
[all …]
/external/autotest/client/cros/cellular/pseudomodem/
Dconnect_machine.py5 import logging
30 logging.info('ConnectMachine: Canceling connect.')
35 logging.info('ConnectMachine: Setting state to REGISTERED.')
44 logging.info('ConnectMachine: Modem is DISABLED.')
48 logging.error(message)
55 logging.info('ConnectMachine: Initiating Enable.')
65 logging.info('ConnectMachine: Modem is ENABLING.')
67 logging.info('ConnectMachine: Waiting for enable.')
72 logging.info('ConnectMachine: Modem is ENABLED.')
78 logging.error(message)
[all …]
/external/autotest/client/cros/
Dxmlrpc_server.py10 import logging
41 logging.debug('This process: %s: %s, %s', me, me.exe(), me.cmdline())
42 logging.debug('Checking for leftover processes...')
59 logging.debug('Found process: %s: %s', proc, args)
62 logging.debug('%s: %s', e, proc)
68 logging.info('Trying SIGTERM: pids=%s', [p.pid for p in running])
74 logging.debug('%s: %s', e, proc)
76 logging.warn('%s: %s', e, proc)
83 logging.info('Trying SIGKILL: pids=%s', [p.pid for p in running])
88 logging.debug('%s: %s', e, proc)
[all …]

12345678910>>...156