Skip to content

Commit

Permalink
Different name for log file for remote_runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei-Stepanov committed Jul 12, 2016
1 parent ffdd2eb commit 5c5b718
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions virttest/remote_commander/remote_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,16 @@
import random
import shutil
import signal
import tempfile

import remote_interface
import messenger as ms


logging.basicConfig(level=logging.DEBUG)
logger = logging.getLogger(__name__)
handler = logging.FileHandler("/tmp/remote_runner.log", "w", encoding=None,
delay="true")
logfile = tempfile.mktemp(suffix='.log', prefix='remote_runner', "/tmp")
handler = logging.FileHandler(logfile, "w", encoding=None, delay="true")
logger.addHandler(handler)


Expand Down

0 comments on commit 5c5b718

Please sign in to comment.