Skip to content

Commit

Permalink
fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
phamdinhkhanh committed Nov 6, 2024
1 parent 486d513 commit 75c7025
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
'Programming Language :: Python :: 3.6',
'Topic :: Financial/Stock Market',
],

keywords = 'data',
install_requires=INSTALL_REQUIRES,
zip_safe=False,
Expand Down
2 changes: 1 addition & 1 deletion vnquant/data/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import pandas as pd
from vnquant import configs
from vnquant.data.loader import DataLoaderVND, DataLoaderCAFE
from vnquant.log.logging import logger
from vnquant.log import logger


URL_VND = configs.URL_VND
Expand Down
3 changes: 1 addition & 2 deletions vnquant/data/loader/cafe.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Copyright (c) vnquant. All rights reserved.
import pandas as pd
import logging as logging
import requests
from datetime import datetime
from requests.packages.urllib3.exceptions import InsecureRequestWarning
Expand All @@ -11,7 +10,7 @@
# sys.path.insert(0,'/Users/phamdinhkhanh/Documents/vnquant')
from vnquant import configs
from vnquant.data.loader.proto import DataLoadProto
from vnquant.log.logging import logger
from vnquant.log import logger
from vnquant.utils import utils

URL_VND = configs.URL_VND
Expand Down
2 changes: 1 addition & 1 deletion vnquant/data/loader/vnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# sys.path.insert(0,'/Users/phamdinhkhanh/Documents/vnquant')
from vnquant import utils
from vnquant import configs
from vnquant.log.logging import logger
from vnquant.log import logger
from vnquant.data.loader.proto import DataLoadProto

API_VNDIRECT = configs.API_VNDIRECT
Expand Down
6 changes: 6 additions & 0 deletions vnquant/log/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright (c) vnquant. All rights reserved.
from .logging import *

__all__ = [
'logger'
]

0 comments on commit 75c7025

Please sign in to comment.