X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c6100263e5126e7aaa4b0b97dd677d61a1d8f59e..b7a7d93d6d9850c5ace31735c6a773e614f7d017:/cookbooks/tile/templates/default/debug.erb diff --git a/cookbooks/tile/templates/default/debug.erb b/cookbooks/tile/templates/default/debug.erb index 5b81db0ef..3da30dfeb 100755 --- a/cookbooks/tile/templates/default/debug.erb +++ b/cookbooks/tile/templates/default/debug.erb @@ -6,6 +6,7 @@ import cgitb import os import sys import resource +import time # HTML Debug of errors cgitb.enable() @@ -61,6 +62,19 @@ print "

Server Stats

" print "

" print "Render Server: <%= node['fqdn'] %>
" print "Load Average: %s

" % loadavg +print "

File Status

" +print "

" +<% +node[:tile][:data].each do |name,data| + url = data[:url] + file = "/srv/tile.openstreetmap.org/data/#{File.basename(url)}" + file_basename = File.basename(url) +-%> +print "%s last modified: %s
" % ("<%= file_basename %>", time.ctime(os.path.getmtime("<%= file %>"))) +<% +end +-%> +print "

" print "

Browser Request Headers

" print "

" for param in os.environ.keys():