Skip to content

Commit

Permalink
Muutettu yksi unohtunut print lokin käytöksi
Browse files Browse the repository at this point in the history
  • Loading branch information
ohylli committed Dec 26, 2017
1 parent 9afcc66 commit 3466b6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uutuusluettelo.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def haeSivu( self, url ):
vastaus = requests.get( url )
# tarkistetaan, että pyyntö onnistui
if vastaus.status_code != 200:
print( 'Sivun ' +url +' haku epäonnistui. HTTP status koodi: ' +str( vastaus.status_code ))
loki.error( 'Sivun ' +url +' haku epäonnistui. HTTP status koodi: ' +str( vastaus.status_code ))
# lopetetaan ohjelma
quit()

Expand Down

0 comments on commit 3466b6f

Please sign in to comment.