Log url earlier
Now logging it in both use cases
This commit is contained in:
2
morss.py
2
morss.py
@@ -409,6 +409,7 @@ def Gather(url, cachePath, mode='feed'):
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
url, options = parseOptions(OPTIONS)
|
url, options = parseOptions(OPTIONS)
|
||||||
|
log(url)
|
||||||
|
|
||||||
if 'REQUEST_URI' in os.environ:
|
if 'REQUEST_URI' in os.environ:
|
||||||
print 'Status: 200'
|
print 'Status: 200'
|
||||||
@@ -420,7 +421,6 @@ if __name__ == '__main__':
|
|||||||
print
|
print
|
||||||
|
|
||||||
cache = os.getcwd() + '/cache'
|
cache = os.getcwd() + '/cache'
|
||||||
log(url)
|
|
||||||
else:
|
else:
|
||||||
cache = os.path.expanduser('~') + '/.cache/morss'
|
cache = os.path.expanduser('~') + '/.cache/morss'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user