Now that only the container manager can write to the log file, traces that were
previously being written by other commands no longer appear in the log file.
Add some logging to the session handling so that we still see these traces in
the log file.
if "session" in args:
raise RuntimeError("Already tracking a session")
if "session" in args:
raise RuntimeError("Already tracking a session")
+ logging.info("Starting up container for a new session")
+
# Networking
command = [tools.config.tools_src +
"/data/scripts/waydroid-net.sh", "start"]
# Networking
command = [tools.config.tools_src +
"/data/scripts/waydroid-net.sh", "start"]
args.session = session
def stop(args, quit_session=True):
args.session = session
def stop(args, quit_session=True):
+ logging.info("Stopping container")
+
try:
services.hardware_manager.stop(args)
status = helpers.lxc.status(args)
try:
services.hardware_manager.stop(args)
status = helpers.lxc.status(args)
if "session" in args:
if quit_session:
if "session" in args:
if quit_session:
+ logging.info("Terminating session because the container was stopped")
try:
os.kill(int(args.session["pid"]), signal.SIGUSR1)
except:
try:
os.kill(int(args.session["pid"]), signal.SIGUSR1)
except: