Skip to content

Commit 74df63b

Browse files
committed
Adding logging output
1 parent ba4a769 commit 74df63b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/_backup_wallets.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# Simple script to back up active coin wallets
22

3-
import sys, os, datetime
3+
import sys, os, datetime, logging
44
from distutils.spawn import find_executable
55
import cointipbot
66

7+
logging.basicConfig()
8+
lg = logging.getLogger('cointipbot')
9+
lg.setLevel(logging.DEBUG)
10+
711
if not len(sys.argv) in [2, 3] or not os.access(sys.argv[1], os.W_OK):
812
print "Usage: %s DIRECTORY [RSYNC-TO]" % sys.argv[0]
913
print "(DIRECTORY must be writeable, RSYNC-TO is optional location to RSYNC the file to)"

0 commit comments

Comments
 (0)