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:
parent
9727fc5967
commit
438c563871
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue