Format logging text correctly.

If passed a single string, the logging code would insert spaces between
each character.  Also, it was not possible to print non-string args.
Ensure that the logging behavior is as similar to what print() would
provide as possible,

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
This commit is contained in:
brian m. carlson 2014-09-18 10:54:31 +00:00
parent 9727fc5967
commit 438c563871
No known key found for this signature in database
GPG key ID: BF535D811F52F68B

View file

@ -34,7 +34,7 @@ def log(*args):
return
if logfd is None:
logfd = open(path, "w")
logfd.write(" ".join(*args))
logfd.write(" ".join(map(str, args)))
logfd.flush()