aboutsummaryrefslogtreecommitdiffstats
path: root/astro/ps2d.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-11-24 21:06:08 +0800
committerAaron LI <aly@aaronly.me>2017-11-24 21:06:08 +0800
commit20a3fa017363aa69778e1dc05d5deb91a6f1293a (patch)
tree4c4195349c3a0bc8f05819686a85336d16708dba /astro/ps2d.py
parentfddd14eed81fce804e91ead0a546aa9d6256cb09 (diff)
downloadatoolbox-20a3fa017363aa69778e1dc05d5deb91a6f1293a.tar.bz2
astro/ps2d.py: Update logging format
Also close the logfile for astro/oskar/wsclean.py
Diffstat (limited to 'astro/ps2d.py')
-rwxr-xr-xastro/ps2d.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/astro/ps2d.py b/astro/ps2d.py
index 27c4328..fd81bef 100755
--- a/astro/ps2d.py
+++ b/astro/ps2d.py
@@ -50,9 +50,8 @@ from matplotlib.figure import Figure
plt.style.use("ggplot")
logging.basicConfig(level=logging.INFO,
- format="%(asctime)s [%(levelname)s] %(message)s",
- datefmt="%H:%M:%S")
-logger = logging.getLogger(os.path.basename(sys.argv[0]))
+ format="[%(levelname)s:%(lineno)d] %(message)s")
+logger = logging.getLogger()
# HI line frequency