blob: c138b5ec1faec01f88349ae42c3cd66f5588c180 [file] [log] [blame]
Allen Liec5beb32016-09-08 15:31:41 -07001# Copyright 2016 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5"""For running module as script."""
6
7from __future__ import print_function
8
9import sys
10
11from chromite.lib import cros_logging as logging
12from chromite.scripts import sysmon
13
14try:
15 sysmon.main(sys.argv[1:])
16except Exception:
17 logging.exception('sysmon throws an error')
18 raise