summaryrefslogtreecommitdiff
path: root/src/index.ts
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2016-12-29 17:50:57 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2016-12-29 17:50:57 +0900
commitdc21a819d65c3c80215a1593d1cc238df6187b4e (patch)
treea1718261cdee6bd7ef9025e37cef7781a074a2ac /src/index.ts
parent:rocket: (diff)
downloadmisskey-dc21a819d65c3c80215a1593d1cc238df6187b4e.tar.gz
misskey-dc21a819d65c3c80215a1593d1cc238df6187b4e.tar.bz2
misskey-dc21a819d65c3c80215a1593d1cc238df6187b4e.zip
Use logger
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/index.ts b/src/index.ts
index f22364a998..2efeb47e51 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -133,22 +133,22 @@ function worker(): void {
* Init app
*/
async function init(): Promise<State> {
- console.log('Welcome to Misskey!\n');
+ log('Info', 'Welcome to Misskey!');
- console.log(chalk.bold('Misskey Core <aoi>'));
+ log('Info', chalk.bold('Misskey Core <aoi>'));
let warn = false;
// Get commit info
try {
const commit = await prominence(git).getLastCommit();
- console.log(`commit: ${commit.shortHash} ${commit.author.name} <${commit.author.email}>`);
- console.log(` ${new Date(parseInt(commit.committedOn, 10) * 1000)}`);
+ log('Info', `commit: ${commit.shortHash} ${commit.author.name} <${commit.author.email}>`);
+ log('Info', ` ${new Date(parseInt(commit.committedOn, 10) * 1000)}`);
} catch (e) {
// noop
}
- console.log('\nInitializing...\n');
+ log('Info', 'Initializing...');
if (IS_DEBUG) {
log('Warn', 'It is not in the Production mode. Do not use in the Production environment.');
@@ -219,5 +219,5 @@ function spawn(callback: any): void {
// Dying away...
process.on('exit', () => {
- console.log('Bye.');
+ log('Info', 'Bye.');
});