From 94b10f03007b4cd007725fc4f77d9786bb1ad4a3 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Mon, 7 Dec 2020 17:31:25 +0100 Subject: [PATCH] debug --- README.md | 2 ++ src/langfingaz/main.py | 2 ++ src/langfingaz/plotMeetings.py | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fd4226e..872d347 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ Save these two values in the first line of the following files: * URL inside `secret/url.txt` * API-secret inside `secret/secret.txt` +Note: You may `chmod 600` on the two above files. + ## run Start logging in the background: diff --git a/src/langfingaz/main.py b/src/langfingaz/main.py index 67b0129..466ba39 100755 --- a/src/langfingaz/main.py +++ b/src/langfingaz/main.py @@ -7,6 +7,8 @@ from langfingaz import logMeetingData def main(): + # logging.basicConfig(level=logging.DEBUG) + print("=== bbb-status ===") logging.debug(str(argv)) print() diff --git a/src/langfingaz/plotMeetings.py b/src/langfingaz/plotMeetings.py index 0b9db24..9c88796 100644 --- a/src/langfingaz/plotMeetings.py +++ b/src/langfingaz/plotMeetings.py @@ -1,6 +1,6 @@ from pathlib import Path from typing import List -from datetime import date +import logging import matplotlib.pyplot as plt import matplotlib.dates as mdates @@ -21,6 +21,7 @@ def plotMeetings(dataDir: Path = fileUtil.getProjectBaseDir().joinpath("data")): for file in dataDir.iterdir(): if file.name.endswith(".xml"): + logging.debug("Reading from file " + str(file)) dataStr, t = loadData.loadData(file) meetings: List[Meeting] = parseMeetings.parseMeetingsData(dataStr) bbbStati.append(parseMeetings.BbbStatus(meetings, t))