Line data Source code
1 : /*
2 : * Copyright (C) 2017 Red Hat, Inc.
3 : * SPDX-License-Identifier: LGPL-2.1-or-later
4 : */
5 :
6 113 : import cockpit from "cockpit";
7 113 : import React from "react";
8 :
9 : import { LogsPanel } from "cockpit-components-logs-panel.jsx";
10 :
11 113 : const _ = cockpit.gettext;
12 :
13 113 : export class StorageLogsPanel extends React.Component {
14 93 : render() {
15 93 : const match = [
16 93 : "_SYSTEMD_UNIT=storaged.service", "+",
17 93 : "_SYSTEMD_UNIT=udisks2.service", "+",
18 93 : "_SYSTEMD_UNIT=dm-event.service", "+",
19 93 : "_SYSTEMD_UNIT=smartd.service", "+",
20 93 : "_SYSTEMD_UNIT=multipathd.service"
21 93 : ];
22 :
23 93 : const search_options = { prio: "debug", _SYSTEMD_UNIT: "storaged.service,udisks2.service,dm-event.service,smartd.service,multipathd.service" };
24 93 : const url = "/system/logs/#/?prio=debug&_SYSTEMD_UNIT=storaged.service,udisks2.service,dm-event.service,smartd.service,multipathd.service";
25 93 : return <LogsPanel title={_("Storage logs")} match={match} max={10} search_options={search_options} goto_url={url} className="contains-list" />;
26 93 : }
27 113 : }
|