Skip to content

Instantly share code, notes, and snippets.

@jperl
Created February 22, 2019 00:06
Show Gist options
  • Save jperl/6ce671ecb36cce99d41f6dc8964acf41 to your computer and use it in GitHub Desktop.
Save jperl/6ce671ecb36cce99d41f6dc8964acf41 to your computer and use it in GitHub Desktop.

Revisions

  1. jperl created this gist Feb 22, 2019.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    FLAGS = flags.FLAGS

    if FLAGS.log_dir:
    if not os.path.exists(FLAGS.log_dir):
    os.makedirs(FLAGS.log_dir)
    logging.get_absl_handler().use_absl_log_file()