summaryrefslogtreecommitdiff
path: root/bin/gitano-auth.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gitano-auth.in')
-rw-r--r--bin/gitano-auth.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/gitano-auth.in b/bin/gitano-auth.in
index 2190ae0..2ec6c45 100644
--- a/bin/gitano-auth.in
+++ b/bin/gitano-auth.in
@@ -20,6 +20,10 @@ local sp = require "luxio.subprocess"
-- @@GITANO_SHARE_PATH
-- @@GITANO_PLUGIN_PATH
+local start_log_level = gitano.log.get_level()
+gitano.log.cap_level(gitano.log.level.INFO)
+local transactionid = gitano.log.syslog.open()
+
local repo_root, user, keytag = ...
gitano.config.repo_path(repo_root)
@@ -31,7 +35,8 @@ if cmdline:match("^[ \t\n]*$") then
end
local authorized, cmd, parsed_cmdline, config, env, repo =
- gitano.auth.is_authorized(user, "ssh", cmdline, repo_root)
+ gitano.auth.is_authorized(user, "ssh", cmdline, repo_root,
+ transactionid, start_log_level)
if authorized then
local exit = gitano.util.run_command(cmd, cmdline, parsed_cmdline,