Ignore:
Timestamp:
2013-02-25T20:38:05Z (11 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
36f6ab3
Parents:
0e788f5
git-author:
Leho Kraav <leho@…> (25-02-13 20:38:05)
git-committer:
Miklos Vajna <vmiklos@…> (25-02-13 20:38:05)
Message:

skyped.py: also sanitize log file output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/skype/skyped.py

    r0e788f5 rc440320  
    257257
    258258        if options.debug:
     259                sanitized = msg
     260
    259261                try:
    260262                        print now + ": " + msg
     
    268270                                        sanitized = "[unable to print debug message]"
    269271                        print now + "~=" + sanitized
     272
     273                if options.log:
     274                        sock = open(options.log, "a")
     275                        sock.write("%s skyped: %s\n" % (now, sanitized))
     276                        sock.close()
     277
    270278                sys.stdout.flush()
    271         if options.log:
    272                 sock = open(options.log, "a")
    273                 sock.write("%s: %s\n" % (now, msg))
    274                 sock.close()
    275279
    276280class MockedSkype:
Note: See TracChangeset for help on using the changeset viewer.