diff options
author | Sitaram Chamarty <sitaram@atc.tcs.com> | 2017-04-05 05:22:19 +0530 |
---|---|---|
committer | Sitaram Chamarty <sitaram@atc.tcs.com> | 2017-04-05 05:22:19 +0530 |
commit | d0b1733f537fede028bc569ee602b4db295f85a4 (patch) | |
tree | fc103dd488000fcfe4a3086b70c7b7394b98bb50 | |
parent | (minor) fix noise in ssh-authkeys-split (thanks to Tony Finch) (diff) | |
download | gitolite-gentoo-d0b1733f537fede028bc569ee602b4db295f85a4.tar.gz gitolite-gentoo-d0b1733f537fede028bc569ee602b4db295f85a4.tar.bz2 gitolite-gentoo-d0b1733f537fede028bc569ee602b4db295f85a4.zip |
allow syslog facility to be changed
-rw-r--r-- | src/lib/Gitolite/Common.pm | 2 | ||||
-rw-r--r-- | src/lib/Gitolite/Rc.pm | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Gitolite/Common.pm b/src/lib/Gitolite/Common.pm index 166a4df..0465db1 100644 --- a/src/lib/Gitolite/Common.pm +++ b/src/lib/Gitolite/Common.pm @@ -305,7 +305,7 @@ sub gl_log { require Sys::Syslog; Sys::Syslog->import(qw(:standard)); - openlog("gitolite" . ( $ENV{GL_TID} ? "[$ENV{GL_TID}]" : "" ), "pid", "local0"); + openlog("gitolite" . ( $ENV{GL_TID} ? "[$ENV{GL_TID}]" : "" ), "pid", $Gitolite::Rc::rc{LOG_FACILITY} || 'local0'); $syslog_opened = 1; } diff --git a/src/lib/Gitolite/Rc.pm b/src/lib/Gitolite/Rc.pm index 254308e..41996fb 100644 --- a/src/lib/Gitolite/Rc.pm +++ b/src/lib/Gitolite/Rc.pm @@ -522,6 +522,8 @@ __DATA__ # LOG_DEST => 'repo-log,normal', # LOG_DEST => 'repo-log,syslog', # LOG_DEST => 'repo-log,syslog,normal', + # syslog 'facility': defaults to 'local0', uncomment if needed. For example: + # LOG_FACILITY => 'local4', # roles. add more roles (like MANAGER, TESTER, ...) here. # WARNING: if you make changes to this hash, you MUST run 'gitolite |