Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteb9b1b3

Browse files
committed
Change Mapit traffic replay script
- The name of the mapit access logs has changed. This updates the traffic replay script to look for the right file name.
1 parentdfa3a4d commiteb9b1b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎mapit.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ def _restart_mapit_services():
5151
defcheck_database_upgrade():
5252
"""Replay yesterday's Mapit requests to ensure that a database upgrade works"""
5353

54-
sudo("awk '$9==200 {print\"http://localhost\" $7}' /var/log/nginx/mapit.access.log.1 > mapit-200s")
55-
sudo("awk '$9==404 {print\"http://localhost\" $7}' /var/log/nginx/mapit.access.log.1 > mapit-404s")
56-
sudo("awk '$9==302 {print\"http://localhost\" $7}' /var/log/nginx/mapit.access.log.1 > mapit-302s")
54+
sudo("awk '$9==200 {print\"http://localhost\" $7}' /var/log/nginx/mapit.publishing.service.gov.uk-access.log.1 > mapit-200s")
55+
sudo("awk '$9==404 {print\"http://localhost\" $7}' /var/log/nginx/mapit.publishing.service.gov.uk-access.log.1 > mapit-404s")
56+
sudo("awk '$9==302 {print\"http://localhost\" $7}' /var/log/nginx/mapit.publishing.service.gov.uk-access.log.1 > mapit-302s")
5757

5858
print"Replaying Mapit 200s. Ensure that they are all still 200s."
5959
print"NOTE: Some 404s may result if internal ids have changed because /area/<code> will redirect to /area/<internal-id> - this should be a low number and for /area/ urls only"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp