diff --git a/config/environments/development.js.example b/config/environments/development.js.example index 43f3588e..bdc498f2 100644 --- a/config/environments/development.js.example +++ b/config/environments/development.js.example @@ -8,7 +8,7 @@ module.exports.base_url = '(?:/api/:version|/user/:user/api/:version)'; // X-SQLAPI-Profile header containing elapsed timing for various // steps taken for producing the response. module.exports.useProfiler = true; -module.exports.log_format = '[:date] :remote-addr :method :req[Host]:url :status :response-time ms -> :res[Content-Type] (:res[X-SQLAPI-Profiler])'; +module.exports.log_format = '[:date] :remote-addr :method :req[Host]:url :status :response-time ms -> :res[Content-Type] (:res[X-SQLAPI-Profiler]) !!!:res[X-SQLAPI-Errors]'; // If log_filename is given logs will be written there, in append mode. Otherwise stdout is used (default). // Log file will be re-opened on receiving the HUP signal module.exports.log_filename = 'logs/cartodb-sql-api.log'; diff --git a/config/environments/production.js.example b/config/environments/production.js.example index 21726fc1..2dd1084d 100644 --- a/config/environments/production.js.example +++ b/config/environments/production.js.example @@ -8,7 +8,7 @@ module.exports.base_url = '(?:/api/:version|/user/:user/api/:version)'; // X-SQLAPI-Profile header containing elapsed timing for various // steps taken for producing the response. module.exports.useProfiler = true; -module.exports.log_format = '[:date] :remote-addr :method :req[Host]:url :status :response-time ms -> :res[Content-Type] (:res[X-SQLAPI-Profiler])'; +module.exports.log_format = '[:date] :remote-addr :method :req[Host]:url :status :response-time ms -> :res[Content-Type] (:res[X-SQLAPI-Profiler]) !!!:res[X-SQLAPI-Errors]'; // If log_filename is given logs will be written there, in append mode. Otherwise stdout is used (default). // Log file will be re-opened on receiving the HUP signal module.exports.log_filename = 'logs/cartodb-sql-api.log'; diff --git a/config/environments/staging.js.example b/config/environments/staging.js.example index 06f0ad77..508e7fd0 100644 --- a/config/environments/staging.js.example +++ b/config/environments/staging.js.example @@ -8,7 +8,7 @@ module.exports.base_url = '(?:/api/:version|/user/:user/api/:version)'; // X-SQLAPI-Profile header containing elapsed timing for various // steps taken for producing the response. module.exports.useProfiler = true; -module.exports.log_format = '[:date] :req[X-Real-IP] :method :req[Host]:url :status :response-time ms -> :res[Content-Type] (:res[X-SQLAPI-Profiler])'; +module.exports.log_format = '[:date] :req[X-Real-IP] :method :req[Host]:url :status :response-time ms -> :res[Content-Type] (:res[X-SQLAPI-Profiler]) !!!:res[X-SQLAPI-Errors]'; // If log_filename is given logs will be written there, in append mode. Otherwise stdout is used (default). // Log file will be re-opened on receiving the HUP signal module.exports.log_filename = 'logs/cartodb-sql-api.log'; diff --git a/config/environments/test.js.example b/config/environments/test.js.example index 3f0fcf4d..e1aa2cf3 100644 --- a/config/environments/test.js.example +++ b/config/environments/test.js.example @@ -8,7 +8,7 @@ module.exports.base_url = '(?:/api/:version|/user/:user/api/:version)'; // X-SQLAPI-Profile header containing elapsed timing for various // steps taken for producing the response. module.exports.useProfiler = true; -module.exports.log_format = '[:date] :remote-addr :method :req[Host]:url :status :response-time ms -> :res[Content-Type] (:res[X-SQLAPI-Profiler])'; +module.exports.log_format = '[:date] :remote-addr :method :req[Host]:url :status :response-time ms -> :res[Content-Type] (:res[X-SQLAPI-Profiler]) !!!:res[X-SQLAPI-Errors]'; // If log_filename is given logs will be written there, in append mode. Otherwise stdout is used (default). // Log file will be re-opened on receiving the HUP signal // module.exports.log_filename = 'logs/cartodb-sql-api.log';