diff options
author | Stan Hu <stanhu@gmail.com> | 2021-02-25 09:56:23 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2021-02-26 09:51:32 -0800 |
commit | 48ec7c61dcb0a5ba763cda89f369a23b9c27b037 (patch) | |
tree | fd25711a460c18dd7ad6c416d53d64cd5fef5f83 /internal/command/commandargs | |
parent | c0a75dae6ec448c1c82eb94b58488cdd8f6759be (diff) | |
download | gitlab-shell-48ec7c61dcb0a5ba763cda89f369a23b9c27b037.tar.gz |
Fix gitlab-shell panic when log file not writable
Previously when the gitlab-shell log was not writable, gitlab-shell
would attempt to fall back to the syslog to log an error. However,
if the syslog logger creation succeeded, gitlab-shell would panic
since `err` was `nil`.
Relates to https://gitlab.com/gitlab-org/gitlab-shell/-/issues/510
Diffstat (limited to 'internal/command/commandargs')
0 files changed, 0 insertions, 0 deletions