Browse Source

gitea api error log show

pull/338/head
xxq250 2 years ago
parent
commit
092a890577
2 changed files with 3 additions and 2 deletions
  1. +0
    -1
      app/services/gitea/client_service.rb
  2. +3
    -1
      app/services/gitea/repository/entries/create_service.rb

+ 0
- 1
app/services/gitea/client_service.rb View File

@@ -256,7 +256,6 @@ class Gitea::ClientService < ApplicationService
end

def error(message, http_status = nil)
Rails.logger.error("@url==#{@url}==error:#{message}")
result = {
message: message,
status: :error


+ 3
- 1
app/services/gitea/repository/entries/create_service.rb View File

@@ -61,7 +61,9 @@ class Gitea::Repository::Entries::CreateService < Gitea::ClientService
else
error("#{filepath}文件已存在,不能重复创建!")
end
else error("系统错误!")
else
Rails.logger.error("Gitea api url==#{url},status:#{status},body=#{body}")
error("系统错误!")
end
end
end

Loading…
Cancel
Save