Skip to content

Commit ca03b0a

Browse files
authored
Merge pull request #9 from oceanbase/dev
fix: Modify log directory
2 parents a6059d9 + 13a00bd commit ca03b0a

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

api/base_api.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@
2121

2222
api = Api(app)
2323

24-
# csrf check
25-
referrer_white_list = [
26-
'https://sqless.opentrscdn.com',
27-
'http://sqless.opentrs.com',
28-
'https://sqless.opentrs.com',
29-
'https://sqless.opentrs.cn',
30-
'http://sqless.opentrs.cn',
31-
]
32-
3324

3425
class BaseAPI(Resource):
3526
def __init__(self, *args, **kwargs):

common/db_query.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@
2828
log = Logger(log_file)
2929

3030
# local db config
31-
cfg_file = os.getcwd().split('sqless')[0] + 'sqless/db.cfg'
31+
cfg_file = os.getcwd().split('sql-lifecycle-management')[0] + 'sql-lifecycle-management/db.cfg'
3232

3333
f = open(cfg_file, 'r', encoding='utf-8')
3434
cfg = f.read()
3535
cfg = eval(cfg)
3636
metadb = cfg['db']
37-
env = cfg['env']
3837

3938
# encryption and decryption
4039
need_decrypt = cfg.get('need_decrypt', 0)

common/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(
3232
clevel=clevel_default,
3333
flevel=flevel_default):
3434
# init file name
35-
self.log_path = os.getcwd().split('sqless')[0] + 'sqless/logs/'
35+
self.log_path = os.getcwd().split('sql-lifecycle-management')[0] + 'sql-lifecycle-management/logs/'
3636
if not logfile:
3737
self.rq = time.strftime('%Y%m%d%H%M', time.localtime(time.time()))
3838
self.logfile = self.log_path + self.rq + '.log'

0 commit comments

Comments
 (0)