Skip to content

Commit 7d8047e

Browse files
Evgeniy Alexeevpentix
authored andcommitted
ShowBootLog: Add --output=verbose option
1 parent c006435 commit 7d8047e

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

src/showbootlog.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ void ShowBootLog::updateBootLog(bool keepIdentifiers)
149149
untilStr = " --until \"" + ui->untilDateTimeEdit->dateTime().toString("yyyy-MM-dd hh:mm:00") + "\"";
150150
}
151151

152+
QString verbose = "";
153+
if(verboseflag)
154+
verbose=" --output=verbose -x ";
152155

153156
QString command = "";
154157
if(this->completeJournal){
@@ -161,6 +164,8 @@ void ShowBootLog::updateBootLog(bool keepIdentifiers)
161164
}
162165
}
163166

167+
command += verbose;
168+
164169
if(this->reverse){
165170
command = command + " -r";
166171
}
@@ -412,3 +417,11 @@ void ShowBootLog::on_exportSelectionButton_clicked()
412417
writeToExportFile(fileName, selection.toLocal8Bit().data());
413418
}
414419

420+
421+
422+
void ShowBootLog::on_verboseCheckBox_stateChanged(int arg1)
423+
{
424+
verboseflag = arg1;
425+
updateBootLog(false);
426+
}
427+

src/showbootlog.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ private slots:
6666

6767
void on_horizontalSlider_valueChanged(int value);
6868

69+
void on_verboseCheckBox_stateChanged(int arg1);
70+
6971
private:
7072
void updateBootLog(bool keepIdentifiers=false);
7173

@@ -75,6 +77,7 @@ private slots:
7577
// Only journalctl options
7678
QString bootid;
7779
bool sinceFlag=false, untilFlag=false;
80+
bool verboseflag=false;
7881
bool completeJournal=false;
7982
bool realtime=false;
8083
bool reverse=false;

ui/showbootlog.ui

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<x>0</x>
1111
<y>0</y>
1212
<width>1164</width>
13-
<height>632</height>
13+
<height>675</height>
1414
</rect>
1515
</property>
1616
<property name="windowTitle">
@@ -207,6 +207,13 @@
207207
</item>
208208
</layout>
209209
</item>
210+
<item>
211+
<widget class="QCheckBox" name="verboseCheckBox">
212+
<property name="text">
213+
<string>Verbose</string>
214+
</property>
215+
</widget>
216+
</item>
210217
<item>
211218
<widget class="QLabel" name="label_12">
212219
<property name="font">

0 commit comments

Comments
 (0)