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 95 : render() {
15 95 : const match = [
16 95 : "_SYSTEMD_UNIT=storaged.service", "+",
17 95 : "_SYSTEMD_UNIT=udisks2.service", "+",
18 95 : "_SYSTEMD_UNIT=dm-event.service", "+",
19 95 : "_SYSTEMD_UNIT=smartd.service", "+",
20 95 : "_SYSTEMD_UNIT=multipathd.service"
21 95 : ];
22 :
23 95 : const search_options = { prio: "debug", _SYSTEMD_UNIT: "storaged.service,udisks2.service,dm-event.service,smartd.service,multipathd.service" };
24 95 : const url = "/system/logs/#/?prio=debug&_SYSTEMD_UNIT=storaged.service,udisks2.service,dm-event.service,smartd.service,multipathd.service";
25 95 : return <LogsPanel title={_("Storage logs")} match={match} max={10} search_options={search_options} goto_url={url} className="contains-list" />;
26 95 : }
27 113 : }
|