mirror of
https://github.com/bellingcat/tiktok-hashtag-analysis.git
synced 2026-06-08 03:18:31 +03:00
changed filehandler to debug level to capture logged data
This commit is contained in:
@@ -25,7 +25,7 @@ args=(sys.stdout,)
|
||||
|
||||
[handler_fileHandler]
|
||||
class=FileHandler
|
||||
level=INFO
|
||||
level=DEBUG
|
||||
formatter=fileFormatter
|
||||
args=("../logfile.log",)
|
||||
|
||||
|
||||
@@ -2,12 +2,11 @@
|
||||
"""
|
||||
|
||||
from typing import NamedTuple, List, Tuple, Set, Optional, Dict, Any
|
||||
import logging, logging.config
|
||||
import logging
|
||||
|
||||
import file_methods
|
||||
|
||||
logging.config.fileConfig("../logging.config")
|
||||
logger = logging.getLogger("Logger")
|
||||
logger = logging.getLogger()
|
||||
|
||||
|
||||
class Diff(NamedTuple):
|
||||
|
||||
@@ -136,7 +136,7 @@ def log_writer(log_data: List[Tuple[str, Tuple[str, int]]]):
|
||||
now_str = datetime.now().strftime("%d-%m-%Y %H:%M:%S")
|
||||
data = {now_str: scraped_summary_dict}
|
||||
|
||||
logger.info(f"Logged post data: {data}")
|
||||
logger.debug(f"Logged post data: {data}")
|
||||
logger.info(f"Successfully scraped {total} total entries")
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import argparse
|
||||
from datetime import datetime
|
||||
import warnings
|
||||
from typing import List, Tuple, Dict, Any
|
||||
import logging, logging.config
|
||||
import logging
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import matplotlib.ticker as mtick
|
||||
@@ -23,8 +23,7 @@ from global_data import IMAGES, FILES
|
||||
|
||||
warnings.filterwarnings("ignore", message="Glyph (.*) missing from current font")
|
||||
sns.set_theme(style="darkgrid")
|
||||
logging.config.fileConfig("../logging.config")
|
||||
logger = logging.getLogger("Logger")
|
||||
logger = logging.getLogger()
|
||||
|
||||
|
||||
def create_parser() -> argparse.ArgumentParser:
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
import os
|
||||
import time
|
||||
import argparse
|
||||
import logging, logging.config
|
||||
import logging
|
||||
from typing import List, Tuple, Dict, Any, Optional
|
||||
from tempfile import TemporaryDirectory
|
||||
|
||||
@@ -18,8 +18,7 @@ import global_data
|
||||
import file_methods
|
||||
import data_methods
|
||||
|
||||
logging.config.fileConfig("../logging.config")
|
||||
logger = logging.getLogger("Logger")
|
||||
logger = logging.getLogger()
|
||||
|
||||
|
||||
def create_parser() -> argparse.ArgumentParser:
|
||||
|
||||
Reference in New Issue
Block a user