From 0252277b1f0194ed2dd7e6c54405afb0511c2741 Mon Sep 17 00:00:00 2001 From: Peter Swain <peter.swain@ed.ac.uk> Date: Fri, 27 Oct 2023 16:12:19 +0100 Subject: [PATCH] docs to logging --- src/agora/logging.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/agora/logging.py b/src/agora/logging.py index a004b018..6eb1bea6 100644 --- a/src/agora/logging.py +++ b/src/agora/logging.py @@ -1,14 +1,10 @@ -#!/usr/bin/env jupyter -""" -Add general logging functions and decorators -""" - import logging from time import perf_counter def timer(func): - # Log duration of a function into aliby logfile + """Log duration of a function into the aliby log file.""" + def wrap_func(*args, **kwargs): t1 = perf_counter() result = func(*args, **kwargs) -- GitLab