Home
last modified time | relevance | path

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

12345678910>>...12

/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dapollo_lib.py55 from logging import Logger
58 logging = tako_trace_logger.TakoTraceLogger(Logger('apollo')) variable
170 serial_logger=logging)
173 logging.error(
181 global logging
182 logging = serial_logger
221 logging.debug(cmd)
292 logging.info('Command rejected')
309 logging.info(res)
334 logging.warning('Error reading PDL mask @ 0x2637')
[all …]
Db29_lib.py31 from logging import Logger
36 logging = tako_trace_logger.TakoTraceLogger(Logger(__file__)) variable
93 logging.error("unable to find b29 with serial number %s" %
169 logging.info('Restoring golden image...')
175 logging.info('Golden image restored successfully')
178 logging.warning('Failed to restore golden image')
191 logging.info('Pinging %s via B29...' % component)
197 logging.info('Ping passes')
201 logging.warning('Ping failed')
212 logging.info('Resetting B29')
[all …]
Dlogserial.py24 from logging import Logger
32 logging = tako_trace_logger.TakoTraceLogger(Logger(__file__)) variable
109 logging.error(error)
213 logging.error(e)
219 global logging
220 logging = serial_logger
221 self.set_output_path(getattr(logging, 'output_path', '/tmp'))
271 logging.info('Connection Open')
279 logging.flush_log()
281 logging.info('Connection Closed')
[all …]
/tools/test/openhst/
Dstress_test.py31 import logging
119 logging.exception("Exception in worker queue - task remains uncompleted.")
134 logging.info("Email with subject '%s' has been suppressed", subject)
163 logging.info("Email with subject '%s' has been sent", subject)
165 logging.exception("Failed to send notification email")
196 logging.info("Event '%s' detected on %s", self.name,
234 logging.info("Logging device info to %s", output)
258 logging.info("Restarting process %s", "".join(str(self.command)))
262 logging.info("Delaying for %.2f seconds", needed_delay)
300 logging.exception("UnicodeEncodeError on running logger process")
[all …]
/tools/asuite/atest/tools/
Datest_tools.py23 import logging
158 logging.error('Error installing updatedb: %s', e)
162 logging.debug('Running updatedb... ')
165 logging.debug('Executing: %s', updatedb_cmd)
169 logging.error('Process interrupted or failure.')
201 logging.error('Failed in dumping %s', dump_file)
221 logging.debug('Probing CC classes:\n %s', find_cc_cmd)
246 logging.debug('Probing Java classes:\n %s', find_java_cmd)
269 logging.debug('indexing CC classes.')
286 logging.debug('indexing Java classes.')
[all …]
/tools/asuite/atest-py2/tools/
Datest_tools.py22 import logging
125 logging.error('Error installing updatedb: %s', e)
129 logging.debug('Running updatedb... ')
132 logging.debug('Executing: %s', updatedb_cmd)
135 logging.error('Process interrupted or failure.')
163 logging.error('Failed in dumping %s', dump_file)
181 logging.debug('Probing CC classes:\n %s', find_cc_cmd)
198 logging.debug('Probing Java classes:\n %s', find_java_cmd)
207 logging.debug('indexing testable modules.')
214 logging.error('Failed in dumping %s', cache)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/
Dutils_lib.py19 import logging
33 logging.getLogger("paramiko").setLevel(logging.WARNING)
61 logging.debug('Trying to load SSH key type: ed25519')
66 logging.debug('Failed loading SSH key type: ed25519')
69 logging.debug('Trying to load SSH key type: rsa')
74 logging.debug('Failed loading SSH key type: rsa')
264 logging.info(
272 logging.info(f'Downloading {file_to_download} to {image_path}')
285 logging.info(
296 logging.info('Sending reboot command via SSH to '
[all …]
/tools/asuite/atest/
Datest_utils.py30 import logging
314 logging.debug('Building Mainline Modules: %s', ' '.join(build_targets))
358 logging.debug('No build targets, skipping build.')
381 logging.debug('Building Dependencies: %s', ' '.join(build_targets))
398 logging.debug('Executing command: %s', cmd)
405 logging.info('Build successful')
408 logging.error('Build failure when running: %s', ' '.join(cmd))
410 logging.error(err.output)
425 logging.debug('Talking to result server raised exception: %s', err)
742 logging.debug(
[all …]
Datest.py32 import logging
161 logging.debug('Quoting regex argument %s', arg)
173 logging.getLogger('').handlers = []
177 logging.basicConfig(level=logging.DEBUG,
180 logging.basicConfig(level=logging.INFO,
192 logging.error('Local environment doesn\'t appear to have been '
318 logging.error(err_msg)
328 logging.debug('Appending "--host" for a deviceless test...')
351 logging.debug(atest_utils.colorize(
407 logging.error('Cannot collect both baseline and new metrics'
[all …]
/tools/asuite/aidegen/lib/
Dide_common_util.py24 import logging
48 logging.debug('The script%s for %s %s found.',
52 logging.error('There is not any script of %s found.', ide_name)
64 logging.debug('Run command: "%s" to launch project.', run_sh_cmd)
68 logging.error('Launch project path %s failed with error: %s.',
83 logging.info('Searching IDE script %s in path: %s.', ide_script_name, top)
85 logging.debug('Search all files under %s to get %s, %s.', top, root,
90 logging.debug('Use file name filter to find %s in path %s.',
141 logging.debug('Call get_scripts_from_dir_path with %s, and %s', input_path,
160 logging.info(
[all …]
/tools/test/connectivity/tools/
Dproto_check.py18 import logging
40 logging.error(
44 logging.error(" prebuilts/tools/linux-x86_64/protoc/bin/protoc")
45 logging.error("If prebuilts are not available, use apt-get:")
46 logging.error(" sudo apt-get install protobuf-compiler")
50 logging.error('Can\'t find required file: %s\n' % proto_path)
56 logging.error("Output path is not a valid directory: %s" %
63 logging.debug('Generating %s' % output_path)
68 logging.debug('Running command %s' % protoc_command)
70 logging.error("Fail to compile proto")
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/audio_analysis_lib/
Dcheck_quality.py21 import logging
87 logging.warning(
115 logging.debug('Convert the file using sox: %s', command)
138 logging.exception('Unsupported wave format')
153 logging.debug('Wave header: %s', header)
221 logging.debug('Channel %d max abs signal: %f', channel_idx,
224 logging.info('No data on channel %d, skip this channel',
232 logging.debug('saturate_value: %f', saturate_value)
233 logging.debug('max signal after normalized: %f',
238 logging.debug('Channel %d spectral:\n%s', channel_idx,
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/
Dwifi_datastore_utils.py18 import logging
57 logging.debug("Request = %s" % request)
64 logging.info("Added device %s to datastore" % name)
77 logging.debug("Request = %s" % request)
83 logging.info("Removed device %s from datastore" % name)
97 logging.debug("Request = %s" % request)
102 logging.info("Locked device %s in datastore" % name)
115 logging.debug("Request = %s" % request)
120 logging.info("Finished un-locking AP %s in datastore" % name)
133 logging.debug("Request = %s" % request)
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/
Dble_performance_test_utils.py17 import logging
61 logging.error(err)
77 logging.info("Reading BLE RSSI for {} sec".format(rssi_read_duration))
87 logging.error(
92 logging.debug("First & Last reading of RSSI :{:03d} & {:03d}".format(
112 logging.info("Reading BLE Scan RSSI for {} sec".format(rssi_read_duration))
120 logging.error(
129 logging.debug("First & Last reading of RSSI :{:03d} & {:03d}".format(
161 logging.info(
175 logging.info("Failed to esatablish COC connection".format(err))
[all …]
/tools/acloud/public/
Dacloud_main.py72 import logging
96 DEFAULT_STREAM_HANDLER = logging.StreamHandler()
97 DEFAULT_STREAM_HANDLER.setLevel(logging.CRITICAL)
98 logging.getLogger().addHandler(DEFAULT_STREAM_HANDLER)
130 _LOGGER = logging.getLogger(ACLOUD_LOGGER)
345 shandler_level = logging.CRITICAL
346 logger = logging.getLogger(ACLOUD_LOGGER)
348 shandler_level = logging.INFO
349 logger = logging.getLogger(ACLOUD_LOGGER)
351 shandler_level = logging.DEBUG
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/
D_tnhelper.py21 import logging
55 logging.debug("Telnet Server IP = %s" % host)
80 logging.debug('Diagnosing telnet connection')
85 logging.error("Unable to ping telnet server.")
89 logging.error('Ping Packets Lost. Result: {}'.format(ping_output))
94 logging.error('Cannot close telnet connection.')
99 logging.error('Cannot reopen telnet connection.')
101 logging.debug('Telnet connection likely recovered')
122 logging.debug('Telnet Command: {}'.format(cmd_str))
123 logging.debug('Telnet Reply: ({},{},{})'.format(
[all …]
/tools/test/connectivity/acts/framework/acts/libs/logging/
Dlog_stream.py16 import logging
19 from logging import FileHandler
20 from logging import Handler
21 from logging import StreamHandler
22 from logging.handlers import RotatingFileHandler
76 LOG_DEBUG: logging.DEBUG,
77 LOG_INFO: logging.INFO,
78 LOG_WARNING: logging.WARNING,
79 LOG_ERROR: logging.ERROR,
80 LOG_CRITICAL: logging.CRITICAL,
[all …]
/tools/test/connectivity/acts/framework/acts/
Dlogger.py20 import logging
27 from acts.libs.logging import log_stream
28 from acts.libs.logging.log_stream import LogStyles
85 class ColoredLogFormatter(logging.Formatter):
203 logging.log_path = log_path
213 file_formatter = logging.Formatter(log_line_format, log_line_time_format)
219 log.setLevel(logging.DEBUG)
226 logging.addLevelName(log_data['level'], log_type)
237 if isinstance(h, logging.FileHandler):
253 logging.warning('Failed to create symlink to latest logs dir.',
[all …]
Dutils.py24 import logging
245 logging.error("Exception error to load %s: %s", f, e)
470 logging.debug("Start standing subprocess with cmd: %s", cmd)
489 logging.debug("Stop standing subprocess %d", pid)
873 logging.debug("No error during default bypass call.")
878 logging.error("ADB_CMD_OUTPUT:0, but error is %s " %
881 logging.debug("Bypass wizard call received harmless error 3: "
886 logging.debug("Need root access to bypass setup wizard.")
890 logging.debug("No error during rooted bypass call.")
895 logging.error("Rooted ADB_CMD_OUTPUT:0, but error is "
[all …]
/tools/asuite/atest-py2/
Datest_utils.py25 import logging
170 logging.debug('No build targets, skipping build.')
177 logging.debug('Building Dependencies: %s', ' '.join(build_targets))
179 logging.debug('Executing command: %s', cmd)
187 logging.info('Build successful')
190 logging.error('Error building: %s', build_targets)
192 logging.error(err.output)
213 logging.debug('Talking to result server raised exception: %s', err)
292 logging.debug('Checking colorful raised exception: %s', err)
538 logging.debug('Saving cache %s.', cache_path)
[all …]
Datest.py28 import logging
130 logging.basicConfig(level=logging.DEBUG, format=log_format, datefmt=datefmt)
132 logging.basicConfig(level=logging.INFO, format=log_format, datefmt=datefmt)
143 logging.error('Local environment doesn\'t appear to have been '
254 logging.error(err_msg)
309 logging.error('Cannot collect both baseline and new metrics at the same time.')
313 logging.error('Need to specify at least 1 arg for regression detection.')
318 logging.error('Need to specify --generate-baseline or --generate-new-metrics.')
322 logging.error('Specified 2 metric paths and --generate-baseline, '
326 logging.error('Specified 2 metric paths and --generate-new-metrics, '
[all …]
/tools/asuite/atest/test_finders/
Dtest_finder_utils.py24 import logging
358 logging.debug('Will search methods %s in %s\n',
375 logging.debug('Cannot find methods %s in %s',
451 logging.debug('%s', err)
535 logging.debug('\'%s\' does not exist!', search_dir)
545 logging.debug('Exception raised: %s', err)
551 logging.debug('Found %s in %s', target, out)
557 logging.debug('Executing %s find cmd: %s', ref_name, find_cmd)
561 logging.debug('%s find cmd out: %s', ref_name, out)
562 logging.debug('%s find completed in %ss', ref_name, time.time() - start)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/android_lib/
Dlogcat.py17 import logging
21 from acts.libs.logging import log_stream
22 from acts.libs.logging.log_stream import LogStyles
47 return logging.ERROR
51 return logging.DEBUG
53 return logging.INFO
55 return logging.WARNING
57 return logging.ERROR
58 return logging.NOTSET
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/wifi_performance_test_utils/
D__init__.py20 import logging
200 logging.error('No IP address found in requested subnet')
340 logging.info('Searching attenuation for RSSI = {}dB'.format(target_rssi))
361 logging.debug('RSSI @ {0:.2f}dB attenuation = {1:.2f}'.format(
386 logging.info('RSSI @ {0:.2f}dB attenuation = {1:.2f}'.format(
390 logging.info(
438 logging.warning('RSSI might be too low to get reliable chain map.')
459 logging.debug('Chain Map: {}'.format(chain_map))
506 logging.debug('RF Map (by Network): {}'.format(rf_map_by_network))
507 logging.debug('RF Map (by Atten): {}'.format(rf_map_by_atten))
[all …]
/tools/test/connectivity/acts/framework/tests/controllers/android_lib/
Dlogcat_test.py16 import logging
66 self.assertEqual(level, logging.DEBUG)
72 self.assertEqual(level, logging.DEBUG)
78 self.assertEqual(level, logging.INFO)
84 self.assertEqual(level, logging.WARNING)
90 self.assertEqual(level, logging.ERROR)
96 self.assertEqual(level, logging.ERROR)
101 logcat._get_log_level = lambda message: logging.INFO
109 log.log.assert_called_once_with(logging.INFO, message)
112 logcat._get_log_level = lambda message: logging.INFO

12345678910>>...12