Commit 14057940 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Removed obnoxious development logs

--HG--
branch : heptapod
parent 90f692658257
......@@ -15,7 +15,6 @@ def initialize(*args)
@file_path = File.join(ATTACHMENT_PATH, SecureRandom.hex, @file_name) if @file_name
@commit_message ||= "Upload attachment #{@file_name}"
@branch_name ||= wiki.default_branch
Rails.logger.info("testgr create att service branch_name=#{@branch_name}")
end
def create_commit!
......
......@@ -18,7 +18,6 @@ def user_can_download_code?
def check_change_access!
unless user_access.can_do_action?(:create_wiki)
Rails.logger.info("testgr failed test can_do_action create_wiki")
raise UnauthorizedError, ERROR_MESSAGES[:write_to_wiki]
end
......@@ -32,7 +31,6 @@ def check_change_access!
def user_can_push?
res = user_access.can_do_action?(:create_wiki) && !Gitlab::Database.read_only?
can_do = user_access.can_do_action?(:create_wiki)
Rails.logger.info("testgr HgAccessWirki user_can_push? -> #{res} can_do=#{can_do} user=#{user_access.user}")
res
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment