Removed emojis

master
Keith Irwin 2017-12-13 18:13:59 +00:00
parent 172127ae7f
commit 65dd73c549
No known key found for this signature in database
GPG Key ID: 378933C743E2BBC0
4 changed files with 11 additions and 12 deletions

View File

@ -55,6 +55,7 @@ Tracman will be updated according to [this branching model](http://nvie.com/post
#### develop
* [#110](https://github.com/Tracman-org/Server/issues/110) Implemented [StandardJS](https://standardjs.com/)
* Removed emojis
#### v0.7.12
* Fixed altitude sign

View File

@ -19,8 +19,8 @@ module.exports = {
verify: () => {
debug(`Verifying SMTP connection...`)
transporter.verify( (err,success) => {
if (err){ console.error(`📧 SMTP ${err}`); }
console.log(`📧 SMTP${(success)?'':' not'} ready`)
if (err){ console.error(err.stack); }
console.log(`SMTP${(success)?'':' not'} ready`)
} )
},

View File

@ -8,7 +8,7 @@ module.exports = {
// Throw error
throwErr: (err, req=null) => {
debug(`throwErr(${err.message},${req.url})`)
console.error(`❌️ ${err.stack}`)
console.error(err.stack)
if (req){
if (env.mode==='production') {
req.flash('danger', 'An error occured. <br>Would you like to <a href="https://github.com/Tracman-org/Server/issues/new">report it</a>?');

View File

@ -32,8 +32,8 @@ const sockets = require('./config/sockets.js')
replset: {socketOptions: {
keepAlive: 1, connectTimeoutMS: 30000 }}
})
.then(() => { console.log(`💿 Mongoose connected to mongoDB`) })
.catch((err) => { console.error(`${err.stack}`) })
.then(() => { console.log(`Mongoose connected to mongoDB`) })
.catch((err) => { console.error(err.stack) })
}
/* Templates */ {
@ -125,7 +125,7 @@ const sockets = require('./config/sockets.js')
// Production handlers
if (env.mode !== 'development') {
app.use((err, req, res, next) => {
if (err.status !== 404 && err.status !== 401) { console.error(`${err.stack}`) }
if (err.status !== 404 && err.status !== 401) { console.error(err.stack) }
if (res.headersSent) { return next(err) }
res.status(err.status || 500)
res.render('error', {
@ -137,7 +137,7 @@ const sockets = require('./config/sockets.js')
// Development handlers
} else {
app.use((err, req, res, next) => {
if (err.status !== 404) { console.error(`${err.stack}`) }
if (err.status !== 404) { console.error(err.stack) }
if (res.headersSent) { return next(err) }
res.status(err.status || 500)
res.render('error', {
@ -154,14 +154,14 @@ const sockets = require('./config/sockets.js')
}
/* RUNTIME */
console.log('🖥 Starting Tracman server...')
console.log('Starting Tracman server...')
// Test SMTP server
mail.verify()
// Listen
http.listen(env.port, () => {
console.log(`🌐 Listening in ${env.mode} mode on port ${env.port}... `)
console.log(`Listening in ${env.mode} mode on port ${env.port}... `)
// Check for clients for each user
User.find({})
@ -170,9 +170,7 @@ http.listen(env.port, () => {
sockets.checkForUsers(io, user.id)
})
})
.catch((err) => {
console.error(`${err.stack}`)
})
.catch((err) => { console.error(err.stack) })
// Start transmitting demo
demo(io)