Skip to content
Snippets Groups Projects
Commit 565083ef authored by Luca Bigliardi's avatar Luca Bigliardi
Browse files

Use console_logging in node daemon


Node daemon logs will be printed on system console if writing on the log file
fails.

Signed-off-by: default avatarLuca Bigliardi <shammash@google.com>
Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
parent ff917534
No related branches found
No related tags found
No related merge requests found
......@@ -882,7 +882,8 @@ def main():
dirs = [(val, constants.RUN_DIRS_MODE) for val in constants.SUB_RUN_DIRS]
dirs.append((constants.LOG_OS_DIR, 0750))
dirs.append((constants.LOCK_DIR, 1777))
daemon.GenericMain(constants.NODED, parser, dirs, CheckNoded, ExecNoded)
daemon.GenericMain(constants.NODED, parser, dirs, CheckNoded, ExecNoded,
console_logging=True)
if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment