tileserver: log error 401

This commit is contained in:
Laura Klünder 2018-12-23 20:29:45 +01:00
parent 5bc48b891c
commit 856f4ecb59

View file

@ -106,6 +106,10 @@ class TileServer:
logger.error('Rejected cache package download with Error 403. Tile secret is probably incorrect.')
return False
if r.status_code == 401:
logger.error('Rejected cache package download with Error 401. You have HTTP Auth active.')
return False
if r.status_code == 304:
if self.cache_package is not None:
logger.debug('Not modified.')