Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit 526d191

Browse files
committed
Renaming logging key
License: MIT Signed-off-by: Adam Uhlir <uhlir.a@gmail.com>
1 parent c9d4724 commit 526d191

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
const YargsPromise = require('yargs-promise')
66
const yargs = require('yargs')
77
const process = require('process')
8-
const log = require('debug')('js-ipfs-repo-migrations:cli')
8+
const log = require('debug')('repo-migrations:cli')
99

1010
const commands = require('./commands')
1111

@@ -57,7 +57,7 @@ async function main (args) {
5757
if (err.message || (err.error && err.error.message)) {
5858
print(err.message || err.error.message)
5959
} else {
60-
print('Unknown error, please re-run the command with DEBUG=js-ipfs-repo-migrations:cli to see debug output')
60+
print('Unknown error, please re-run the command with DEBUG=repo-migrations:cli to see debug output')
6161
}
6262

6363
exitCode = 1

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const repoInit = require('./repo/init')
77
const isBrowser = require('./option-node')
88
const errors = require('./errors')
99

10-
const log = require('debug')('js-ipfs-repo-migrations:migrator')
10+
const log = require('debug')('repo-migrations:migrator')
1111

1212
exports.getCurrentRepoVersion = repoVersion.getVersion
1313
exports.errors = errors

src/repo/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const Datastore = require('datastore-fs')
4-
const log = require('debug')('js-ipfs-repo-migrations:repo:init')
4+
const log = require('debug')('repo-migrations:repo:init')
55

66
const Key = require('interface-datastore').Key
77

src/repo/lock-memory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const debug = require('debug')
44

5-
const log = debug('js-ipfs-repo-migrations:repo_mem_lock')
5+
const log = debug('repo-migrations:repo_mem_lock')
66

77
const lockFile = 'repo.lock'
88

src/repo/lock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const path = require('path')
44
const debug = require('debug')
55
const { lock } = require('proper-lockfile')
66

7-
const log = debug('js-ipfs-repo-migrations:repo_fs_lock')
7+
const log = debug('repo-migrations:repo_fs_lock')
88
const lockFile = 'repo.lock'
99

1010
/**

0 commit comments

Comments
 (0)