X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c6100263e5126e7aaa4b0b97dd677d61a1d8f59e..fb13f19b005623db4d2ae0c1def422e885b048a9:/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 "
"
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():