When in ruby, log for kibana no need to_json with hash.
Signed-off-by: Li Yuanchao <lyc163mail(a)163.com>
---
lib/git_mirror.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/git_mirror.rb b/lib/git_mirror.rb
index 71d6956..a25207a 100644
--- a/lib/git_mirror.rb
+++ b/lib/git_mirror.rb
@@ -563,7 +563,7 @@ class MirrorMain
@log.info({
msg: 'new repo',
repo: git_repo
- }.to_json)
+ })
end
def git_fail_log(git_repo, possible_new_refs)
@@ -571,7 +571,7 @@ class MirrorMain
@log.info({
msg: msg,
repo: git_repo
- }.to_json)
+ })
end
def new_refs_log(git_repo, nr_new_branch)
@@ -579,7 +579,7 @@ class MirrorMain
msg: 'new refs',
repo: git_repo,
nr_new_branch: nr_new_branch
- }.to_json)
+ })
end
def last_commit_new?(git_repo)
--
2.23.0