Skip to content

Commit

Permalink
fix: housekeeping (#215)
Browse files Browse the repository at this point in the history
* chore: remove console.log

* chore: update error message to env file
  • Loading branch information
TacticalTechJay authored Nov 6, 2022
1 parent 642b0fd commit 1ecf979
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/pages/api/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ async function handler(req: NextApiReq, res: NextApiRes) {

// handle partial uploads before ratelimits
if (req.headers['content-range']) {
console.log(req.files);
// parses content-range header (bytes start-end/total)
const [start, end, total] = req.headers['content-range']
.replace('bytes ', '')
Expand Down
2 changes: 1 addition & 1 deletion src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function start() {
);
logger.error('Please change your secret in the config file or environment variables.');
logger.error(
'The config file is located at `config.toml`, or if using docker-compose you can change the variables in the `docker-compose.yml` file.'
'The config file is located at `.env.local`, or if using docker-compose you can change the variables in the `docker-compose.yml` file.'
);
logger.error('It is recomended to use a secret that is alphanumeric and randomized.');
logger.error('A way you can generate this is through a password manager you may have.');
Expand Down

0 comments on commit 1ecf979

Please sign in to comment.