diff --git a/app/views/common/_footer.html.haml b/app/views/common/_footer.html.haml index 2edd6210..c6aa9b6a 100644 --- a/app/views/common/_footer.html.haml +++ b/app/views/common/_footer.html.haml @@ -29,8 +29,3 @@ %p.u-muted--footer = t('common.footer.application_release') = Version::VERSION - - if Rails.env.development? - %pre - [puma stats: - = JSON.pretty_generate(JSON.parse(Puma.stats, symbolize_names: true)) - , time: #{Time.now}] diff --git a/app/views/common/_puma_stats.html.haml b/app/views/common/_puma_stats.html.haml new file mode 100644 index 00000000..2efbd0be --- /dev/null +++ b/app/views/common/_puma_stats.html.haml @@ -0,0 +1,5 @@ + +%div + %pre + %code + = "[#{JSON.pretty_generate(puma_stats: JSON.parse(Puma.stats), time: Time.now)}]" diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 36cc3821..f10cb0ab 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -40,3 +40,4 @@ = render partial: 'common/footer' + = render partial: 'common/puma_stats' if Rails.env.development?