Skip to content

Commit

Permalink
coursera: Add logging information for running hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogério Brito committed Jun 17, 2013
1 parent 8d0f153 commit f764480
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coursera/coursera_dl.py
Expand Up @@ -718,6 +718,7 @@ def format_combine_number_resource(secnum, lecnum, lecname, fmt):
last_update = max(last_update, os.path.getmtime(lecfn))

for hook in hooks:
logging.info('Running hook %s for section %s.', hook, sec)
os.chdir(sec)
subprocess.call(hook)

Expand Down

0 comments on commit f764480

Please sign in to comment.