create file when writing!
This commit is contained in:
parent
8b59fd03f3
commit
4edf5e69ea
1 changed files with 0 additions and 2 deletions
|
@ -119,8 +119,6 @@ class Logger:
|
||||||
show = nick
|
show = nick
|
||||||
for f in files:
|
for f in files:
|
||||||
path_to_file = os.path.join(LOGPATH, f)
|
path_to_file = os.path.join(LOGPATH, f)
|
||||||
if not os.path.isfile(path_to_file):
|
|
||||||
return
|
|
||||||
fil = open(path_to_file, 'a')
|
fil = open(path_to_file, 'a')
|
||||||
fil.write('%s:%s:%s' % (tim, jid, show))
|
fil.write('%s:%s:%s' % (tim, jid, show))
|
||||||
if msg:
|
if msg:
|
||||||
|
|
Loading…
Add table
Reference in a new issue