diff options
author | Vitaly Takmazov | 2024-08-06 22:12:13 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-08-08 03:31:33 +0300 |
commit | a2b500a205d007bc4f79ad30f4604c55b8264931 (patch) | |
tree | 6a824ae6a3ca06d33bec0725cb61cbd68983a735 /vnext | |
parent | 1dd0547e3fd8d4cacc125def5800c9019dd72cef (diff) |
vnext: move sape logging to debug
Diffstat (limited to 'vnext')
-rw-r--r-- | vnext/server/sape.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vnext/server/sape.js b/vnext/server/sape.js index cff9b48a..d88ee75a 100644 --- a/vnext/server/sape.js +++ b/vnext/server/sape.js @@ -2,6 +2,8 @@ import { parseStringPromise } from 'xml2js' import axios from 'axios' import { setupCache } from 'axios-cache-interceptor' import config from 'config' +import debug from 'debug' +const log = debug('sape') const token = config.get('service.sape.token') || process.env.SAPE_TOKEN @@ -14,7 +16,7 @@ const token = config.get('service.sape.token') || process.env.SAPE_TOKEN */ export const getLinks = async (uri, sapeCookie) => { if (!token) { - console.warn('Sape is not configured') + log('Sape is not configured') return [] } const response = await sape.get(`http://dispencer-01.sape.ru/code.php?user=${token}&host=juick.com&charset=UTF-8&as_xml=true`) |