Home
last modified time | relevance | path

Searched refs:logger (Results 1 – 25 of 415) sorted by relevance

12345678910>>...17

/openbmc/openbmc-build-scripts/scripts/
H A Dget_unit_test_report.py149 logger = logging.getLogger(__name__) variable
163 logger.addHandler(console_handler)
164 logger.addHandler(file_handler)
172 logger.error("Unable to create report directory: " + report_dir)
173 logger.error(str(e))
184 logger.debug(output)
186 logger.error(e.output)
187 logger.error(e.cmd)
188 logger.error("Unable to clone openbmc-build-scripts")
198 logger.error("ERROR: Unable to get sandbox name for url " + url)
[all …]
/openbmc/openbmc/poky/scripts/
H A Dyocto-check-layer33 logger = scriptutils.logger_create(PROGNAME, stream=sys.stdout) variable
37 logger.info("Starting to analyze: %s" % layer['name'])
38 logger.info("----------------------------------------------------------------------")
40 …tc = CheckLayerTestContext(td=td, logger=logger, layer=layer, test_software_layer_signatures=test_…
45 logger.debug("Found layer %s (%s)" % (layer["name"], layer["path"]))
48 logger.debug("%s collections: %s" % (layer["name"], ", ".join(collections)))
88 logger.addHandler(fh)
90 logger.setLevel(logging.DEBUG)
92 logger.setLevel(logging.ERROR)
95 logger.error("You must source the environment before running this script.")
[all …]
H A Dinstall-buildtools56 logger = scriptutils.logger_create(PROGNAME, stream=sys.stdout) variable
66 logger.error("This script requires Python 3.4 or greater")
67 logger.error("You have Python %s.%s" %
193 logger.setLevel(logging.DEBUG)
195 logger.setLevel(logging.ERROR)
198 logger.debug("--url and --filename detected. Ignoring --base-url "
211 logger.debug("milestone regex: %s" % m)
213 logger.debug("release[distro]: %s" % m.group('distro'))
214 logger.debug("release[version]: %s" % m.group('version'))
215 logger.debug("release[milestone]: %s" % m.group('milestone'))
[all …]
H A Doe-publish-sdk25 logger = scriptutils.logger_create('sdktool') variable
35 logger.debug("In publish function")
38 logger.debug("target_sdk = %s, update_server = %s" % (target_sdk, destination))
43 logger.error("Specified SDK %s doesn't exist" % target_sdk)
46 logger.error("%s is a directory - expected path to SDK installer file" % target_sdk)
59 logger.debug("Making sure the destination directory exists")
66 logger.error("Making directory %s on %s failed" % (destdir, host))
70 logger.info("Copying the SDK to destination")
82 logger.error("scp %s %s failed" % (target_sdk, destination))
86 logger.info("Unpacking SDK")
[all …]
H A Drecipetool21 logger = scriptutils.logger_create('recipetool') variable
29 tinfoil.logger.setLevel(logger.getEffectiveLevel())
36logger.error("This script can only be run after initialising the build environment (e.g. by using …
56 logger.setLevel(logging.DEBUG)
58 logger.setLevel(logging.ERROR)
63 logger.error("Unable to find bitbake by searching parent directory of this script or PATH")
65 logger.debug('Found bitbake path: %s' % bitbakepath)
68 scriptutils.logger_setup_color(logger, global_args.color)
75 scriptutils.load_plugins(logger, plugins, pluginpath)
90 logger.error("No commands registered - missing plugins?")
/openbmc/openbmc/poky/meta/lib/oeqa/utils/
H A Dhttpserver.py16 def server_start(self, root_dir, logger): argument
18 self.logger = logger
24 self.server.logger.info(format_str, *args)
28 def __init__(self, root_dir, host='', port=0, logger=None): argument
32 if logger:
33 self.logger = logger.getChild("HTTPService")
35 self.logger = logging.getLogger("HTTPService")
39 …self.logger.info("Not starting HTTPService for directory %s which doesn't exist" % (self.root_dir))
45 …ocess = multiprocessing.Process(target=self.server.server_start, args=[self.root_dir, self.logger])
50 self.logger.warn("Exception when handling %s: %s" % (request, exception))
[all …]
H A Dqemurunner.py47 …, display, tmpdir, deploy_dir_image, logfile, boottime, dump_dir, use_kvm, logger, use_slirp=False, argument
86 self.logger = logger
117 … self.logger.debug("Created listening socket for qemu serial console on: 127.0.0.1:%s" % port)
139 self.logger.error('runqemu exited with code %d' % self.runqemu.returncode)
140 self.logger.error('Output from runqemu:\n%s' % getOutput(self.runqemu.stdout))
151 self.logger.error("Invalid rootfs %s" % self.rootfs)
154 self.logger.error("Invalid TMPDIR path %s" % self.tmpdir)
159 self.logger.error("Invalid DEPLOY_DIR_IMAGE path %s" % self.deploy_dir_image)
170 self.logger.debug('Using kvm for runqemu')
173 self.logger.debug('Not using kvm for runqemu')
[all …]
/openbmc/openbmc-test-automation/ffdc/
H A Dffdc_collector.py211 self.logger = None
233 self.logger.error(e)
237 self.logger.error(
243 self.logger.info("\n\tENV: User define input YAML variables")
271 self.logger.error("\tEXCEPTION redfishtool: %s", e)
277 self.logger.error("\tEXCEPTION ipmitool: %s", e)
280 self.logger.info("\n\t---- Script host environment ----")
281 self.logger.info(
284 self.logger.info(
287 self.logger.info(
[all …]
/openbmc/qemu/tests/functional/
H A Dreverse_debugging.py38 logger = logging.getLogger('replay')
42 logger.info('recording the execution...')
45 logger.info('replaying the execution...')
56 logger=self.log.getChild('console'),
105 logger = logging.getLogger('replay')
108 logger.info('creating qcow2 image for VM snapshots')
126 logger.info("recorded log with %s+ steps" % last_icount)
132 logger.info('connecting to gdbstub')
143 logger.info('stepping forward')
148 logger.info('saving position %x' % pc)
[all …]
H A Dreplay_kernel.py35 logger = logging.getLogger('replay')
40 logger.info('recording the execution...')
43 logger.info('replaying the execution...')
57 logger.info('finished the recording with log size %s bytes'
60 logger.info('successfully tested replay-dump.py')
63 logger.info('successfully finished the replay')
65 logger.info('elapsed time %.2f sec' % elapsed)
83 logger = logging.getLogger('replay')
84 logger.info('replay overhead {:.2%}'.format(t2 / t1 - 1))
/openbmc/openbmc/poky/bitbake/lib/bb/tests/support/
H A Dhttpserver.py15 def server_start(self, root_dir, logger): argument
26 def __init__(self, root_dir, host='', port=0, logger=None): argument
30 if not logger:
31 logger = logging.getLogger()
32 self.logger = logger
37 …self.logger.info("Not starting HTTPService for directory %s which doesn't exist" % (self.root_dir))
43 …ocess = multiprocessing.Process(target=self.server.server_start, args=[self.root_dir, self.logger])
53 if self.logger:
54 self.logger.info("Started HTTPService on %s:%s" % (self.host, self.port))
63 if self.logger:
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/ui/
H A Dtoasterui.py34 logger = logging.getLogger("ToasterLogger") variable
41 logger.error("Unable to get the value of BBINCLUDELOGS variable: %s", error)
45 logger.error("Unable to get the value of BBINCLUDELOGS_LINES variable: %s", error)
49 logger.error("Unable to get the value of BB_CONSOLELOG variable: %s", error)
74 logger.addHandler(build_log)
83 logger.removeHandler(build_log)
149 logger.addHandler(console)
150 logger.setLevel(logging.INFO)
154 logger.error("can't set event mask: %s", error)
162logger.warning("buildhistory is not enabled. Please enable INHERIT += \"buildhistory\" to see imag…
[all …]
/openbmc/openbmc/poky/documentation/tools/
H A Dupdate-documentation-conf21 logger = logging.getLogger(name)
24 logger.addHandler(loggerhandler)
25 logger.setLevel(logging.INFO)
26 return logger
27 logger = logger_create('docconfupdater')
37 logger.setLevel(logging.WARN)
40 logger.error('Specified base path %s not found')
45 logger.error('Unable to find %s' % doc_conf)
62 logger.warn('Invalid info line (no = character), ignoring: %s' % infoline)
66 logger.warn('Invalid info line (no varflag), ignoring: %s' % infoline)
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/asyncrpc/
H A Dserv.py30 def __init__(self, socket, proto_name, logger): argument
36 self.logger = ClientLoggerAdapter(
37 logger,
52 self.logger.info("Client %r connected" % (self.socket.address,))
61 self.logger.debug("Rejecting invalid protocol %s" % (self.proto_name))
66 self.logger.debug(
103 self.logger.info(str(e))
105 self.logger.error(str(e))
112 self.logger.debug("Handling %s" % k)
122 def __init__(self, handler, logger): argument
[all …]
/openbmc/openbmc/poky/bitbake/lib/bblayers/
H A Dlayerindex.py16 logger = logging.getLogger('bitbake-layers') variable
45 logger.error("Failed to download %s (%s)" % (url, branch))
50 logger.plain("Repository %s needs to be fetched" % url)
61 logger.error("Unable to validate repo %s (%s)" % (repodir, stderr))
68 logger.warning("There are uncommitted changes in repo %s" % repodir)
73 logger.error("Unable to automatically switch %s to desired branch '%s' (%s)"
80 logger.error("%s is not in %s" % (url, subdir))
109 logger.debug('Trying branches: %s' % branches)
122 logger.plain("You already have the requested layer(s): %s" % args.layername)
131 logger.error("Cannot get BBLAYERS_LAYERINDEX_URL")
[all …]
/openbmc/phosphor-fan-presence/test/
H A Dlogger_test.cpp12 Logger logger{logSize}; in TEST() local
16 logger.log("Test Message "s + std::to_string(i)); in TEST()
19 auto messages = logger.getLogs(); in TEST()
37 logger.log("New Message"); in TEST()
39 messages = logger.getLogs(); in TEST()
46 auto path = logger.saveToTempFile(); in TEST()
50 logger.clear(); in TEST()
51 messages = logger.getLogs(); in TEST()
/openbmc/openbmc/poky/scripts/lib/resulttool/
H A Dregression.py152 def can_be_compared(logger, base, target): argument
166logger.error(f"ERROR: did not manage to guess oeselftest metadata for {base_configuration['STARTTI…
168 logger.debug(f"Enriching {base_configuration['STARTTIME']} with {guess}")
173logger.error(f"ERROR: did not manage to guess oeselftest metadata for {target_configuration['START…
175 logger.debug(f"Enriching {target_configuration['STARTTIME']} with {guess}")
201 def compare_result(logger, base_name, target_name, base_result, target_result, display_limit=None): argument
225 logger.error('Failed to retrieved base test case status: %s' % k)
269 def get_results(logger, source): argument
272 def regression(args, logger): argument
273 base_results = get_results(logger, args.base_result)
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/core/
H A Drunner.py19 def __init__(self, logger): argument
20 self.logger = logger
29 self.logger.log(logging.INFO, self.buffer)
32 self.logger.log(logging.INFO, msg)
35 for handler in self.logger.handlers:
70 self.tc.logger.info(self.progressinfo[test.id()])
77 self.tc.logger.info(str(msg))
83 self.tc.logger.info("SUMMARY:")
84 self.tc.logger.info("%s (%s) - Ran %d test%s in %.3fs" % (component,
93 self.tc.logger.info(msg)
[all …]
/openbmc/openbmc/poky/scripts/esdk-tools/
H A Drecipetool21 logger = scriptutils.logger_create('recipetool') variable
29 tinfoil.logger.setLevel(logger.getEffectiveLevel())
36logger.error("This script can only be run after initialising the build environment (e.g. by using …
56 logger.setLevel(logging.DEBUG)
58 logger.setLevel(logging.ERROR)
63 logger.error("Unable to find bitbake by searching parent directory of this script or PATH")
65 logger.debug('Found bitbake path: %s' % bitbakepath)
68 scriptutils.logger_setup_color(logger, global_args.color)
75 scriptutils.load_plugins(logger, plugins, pluginpath)
90 logger.error("No commands registered - missing plugins?")
H A Drunqemu38 logger = logging.getLogger('runqemu')
39 logger.setLevel(logging.INFO)
51 # add ch to logger
52 logger.addHandler(ch)
54 return logger
56 logger = create_logger() variable
230 logger.debug("Acquiring lockfile %s..." % self.taplock)
237 logger.error(msg)
239 logger.info(msg)
248 logger
[all...]
/openbmc/openbmc/poky/scripts/lib/wic/plugins/source/
H A Dbootimg-efi.py27 logger = logging.getLogger('wic') variable
48 logger.debug("initrd files:\n%s" % (out))
50 logger.debug("Ignoring missing initrd")
57 logger.debug("dtb files:\n%s" % (out))
71 logger.debug("Using custom configuration file "
119 logger.debug("Writing grubefi config %s/hdd/boot/EFI/BOOT/grub.cfg",
150 logger.debug("Writing systemd-boot config "
154 logger.debug("loader.conf:\n%s" % (loader_conf))
170 logger.debug("Using custom configuration file "
205 logger.debug("Writing systemd-boot config "
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/core/target/
H A Dssh.py17 def __init__(self, logger, ip, server_ip, timeout=300, user='root', argument
19 if not logger:
20 logger = logging.getLogger('target')
21 logger.setLevel(logging.INFO)
28 logger.addHandler(fileHandler)
30 super(OESSHTarget, self).__init__(logger)
62 self.logger.debug("[Running]$ %s" % " ".join(command))
65 status, output = SSHCall(command, self.logger, timeout, raw)
66 self.logger.debug("[Command returned '%d' after %.2f seconds]"
96 … self.logger.debug('Command: %s\nStatus: %d Output length: %s\n' % (command, status, len(output)))
[all …]
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/
H A Dmanifest.py28 self.logger.debug("{}: looking for {}"\
32 self.logger.debug("{}: {} not found"\
35 self.logger.debug("{}: checking of {} failed"\
47 self.logger.debug("{}: {} points to {} when target = {}"\
59 self.logger.info("{}: doing bitbake {} as a prerequisite of the test"\
62 self.logger.debug("{} Failed to setup {}"\
74 self.logger.debug("{}: doing bitbake {} as a prerequisite of the test"\
77 self.logger.debug("{} Failed to bitbake {}"\
95 self.logger.debug("{}: {} does not exist".format(
105 self.logger.debug("{}: {} does not exist".format(
[all …]
H A Dresulttooltests.py85 …result, text = regression.compare_result(self.logger, "BaseTestRunName", "TargetTestRunName", base…
120 … self.assertTrue(regression.can_be_compared(self.logger, base_configuration, target_configuration),
147 …self.assertFalse(regression.can_be_compared(self.logger, base_configuration, target_configuration),
181 … self.assertTrue(regression.can_be_compared(self.logger, base_configuration, target_configuration),
215 …self.assertFalse(regression.can_be_compared(self.logger, base_configuration, target_configuration),
245 … self.assertTrue(regression.can_be_compared(self.logger, base_configuration, target_configuration),
256 … self.assertTrue(regression.can_be_compared(self.logger, base_configuration, target_configuration),
268 …self.assertFalse(regression.can_be_compared(self.logger, base_configuration, target_configuration),
286 …self.assertFalse(regression.can_be_compared(self.logger, base_configuration, target_configuration),
304 … self.assertTrue(regression.can_be_compared(self.logger, base_configuration, target_configuration),
[all …]
/openbmc/openbmc/poky/meta/recipes-core/udev/udev-extraconf/
H A Dmount.sh18 logger "Using systemd-mount to finish mount"
20 logger "Linux init is using systemd, so please install systemd-mount to finish mount"
34 logger "udev/mount.sh" "[$DEVNAME] is marked to ignore"
54 logger "mount.sh/automount" "$MOUNT_BASE/$name already mounted"
64 logger "mount.sh/automount" "[$MOUNT_BASE/$name] is already cached"
78 logger "mount.sh/automount" "Filesystem '$ID_FS_TYPE' on '${DEVNAME}' is unsupported"
106 logger "mount.sh/automount" "Auto-mount of [$MOUNT_BASE/$name] successful"
130 logger "mount.sh/automount" "[$MOUNT_BASE/$name] is already cached"
161 logger "mount.sh/automount" "Auto-mount of [$MOUNT_BASE/$name] successful"
175 logger "mount.sh/automount" "Not removing non-empty directory [$1]"
[all …]

12345678910>>...17