now outputting artist name in stdout
This commit is contained in:
parent
13d7d37d1e
commit
97690b114e
2
grab.py
2
grab.py
@ -50,7 +50,7 @@ def logMsg(msg, mode):
|
|||||||
timestamp = getCurrentTimestamp()
|
timestamp = getCurrentTimestamp()
|
||||||
|
|
||||||
# Log to console
|
# Log to console
|
||||||
print(col + "[" + timestamp + "]: " + msg)
|
print(col + f"[{timestamp}][{artist_name}]: " + msg)
|
||||||
|
|
||||||
# Log to logfile
|
# Log to logfile
|
||||||
logfile = open("./logs/" + slugify(artist_name) + ".txt", "a") # Open existing or create
|
logfile = open("./logs/" + slugify(artist_name) + ".txt", "a") # Open existing or create
|
||||||
|
Loading…
x
Reference in New Issue
Block a user