Show log.gz files as text in browser
This commit is contained in:
parent
801304cabb
commit
40536d4d4d
|
@ -2,7 +2,7 @@ module FileStoreHelper
|
|||
|
||||
def file_store_results_url(sha1, file_name)
|
||||
url = "#{APP_CONFIG['file_store_url']}/api/v1/file_stores/#{sha1}"
|
||||
url << '.log?show=true' if file_name =~ /.*\.(log|txt)$/
|
||||
url << '.log?show=true' if file_name =~ /.*\.(log|txt|log\.gz|txt\.gz)$/
|
||||
url
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue