Skip to content

Commit

Permalink
Default to a specific log file
Browse files Browse the repository at this point in the history
  • Loading branch information
nacho committed May 18, 2012
1 parent f8594bf commit 5c31808
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions post_receive_email.py
Expand Up @@ -139,6 +139,10 @@ def recipients(variable):

def main():
log_file_path = git_config_get(POST_RECEIVE_LOGFILE)

if not log_file_path:
log_file_path = "/tmp/post-receive-mail.log"

with open(log_file_path, 'a') as log_file:
try:
config = get_config_variables()
Expand Down

0 comments on commit 5c31808

Please sign in to comment.