X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3df53dba22117390f55bc350d47ae0e25b19e85d..b7a7d93d6d9850c5ace31735c6a773e614f7d017:/cookbooks/tile/templates/default/debug.erb diff --git a/cookbooks/tile/templates/default/debug.erb b/cookbooks/tile/templates/default/debug.erb index 998ed7b0e..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() @@ -58,7 +59,22 @@ print "" print "
" print "Load Average:%s
" % loadavg +print ""
+print "Render Server: <%= node['fqdn'] %>
"
+print "Load Average: %s
"
+<%
+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 "
" for param in os.environ.keys():