analyze: add get-log-level, get-log-target verbs

They’re counterparts to the existing set-log-level and set-log-target
verbs, simply printing the current value to stdout. This makes it
slightly easier to temporarily change the log level and/or target and
then restore the old value(s).
This commit is contained in:
Lucas Werkmeister
2017-09-07 23:55:59 +02:00
parent 4146ac2a4c
commit ef5a8cb1a7
5 changed files with 86 additions and 1 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ _systemd_analyze() {
)
local -A VERBS=(
[STANDALONE]='time blame plot dump'
[STANDALONE]='time blame plot dump get-log-level get-log-target'
[CRITICAL_CHAIN]='critical-chain'
[DOT]='dot'
[LOG_LEVEL]='set-log-level'
+2
View File
@@ -28,6 +28,8 @@ _systemd_analyze_command(){
'dump:Dump server status'
'set-log-level:Set systemd log threshold'
'set-log-target:Set systemd log target'
'get-log-level:Get systemd log threshold'
'get-log-target:Get systemd log target'
'syscall-filter:List syscalls in seccomp filter'
'verify:Check unit files for correctness'
)