Skip to content

Log which storage we are accessing in rails

Overview

When Rails receives git requests we log the project and user however we don't log the storage name it's trying to reach.

Screenshot_2023-07-18_at_11.48.19

source

Why

As part of the disaster recovery we are migrating to new sets of Gitaly servers and part of decommission a gitaly server it would be nice to see if we are actually sending some requests to that storage. We can't check Gitaly logs because it's turned off.

Edited by Steve Xuereb