Skip to content

Commit 10bf15d

Browse files
committed
Adding logs
1 parent 2105fb9 commit 10bf15d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

beetsplug/ipfs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ def commands(self):
5858
def func(lib, opts, args):
5959
if opts.add:
6060
for album in lib.albums(ui.decargs(args)):
61+
if len(album.items()) == 0:
62+
self._log.info('{0} does not contain items, aborting',
63+
album)
64+
6165
self.ipfs_add(album)
6266
album.store()
6367

@@ -100,6 +104,7 @@ def ipfs_add(self, album):
100104
return False
101105
try:
102106
if album.ipfs:
107+
self._log.debug('{0} already added', album_dir)
103108
# Already added to ipfs
104109
return False
105110
except AttributeError:

0 commit comments

Comments
 (0)