Skip to content

Commit

Permalink
Adding logging output
Browse files Browse the repository at this point in the history
  • Loading branch information
vindimy committed Feb 11, 2014
1 parent ba4a769 commit 74df63b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/_backup_wallets.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Simple script to back up active coin wallets

import sys, os, datetime
import sys, os, datetime, logging
from distutils.spawn import find_executable
import cointipbot

logging.basicConfig()
lg = logging.getLogger('cointipbot')
lg.setLevel(logging.DEBUG)

if not len(sys.argv) in [2, 3] or not os.access(sys.argv[1], os.W_OK):
print "Usage: %s DIRECTORY [RSYNC-TO]" % sys.argv[0]
print "(DIRECTORY must be writeable, RSYNC-TO is optional location to RSYNC the file to)"
Expand Down

0 comments on commit 74df63b

Please sign in to comment.