forked from mystiq/hydrogen-web
Fix NullLogger
This commit is contained in:
parent
7dc3707871
commit
5d67db0c5e
1 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
See the License for the specific language governing permissions and
|
See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
import {LogLevel} from "./LogLevel.js";
|
import {LogLevel} from "./LogFilter.js";
|
||||||
|
|
||||||
export class NullLogger {
|
export class NullLogger {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
@ -21,7 +21,7 @@ export class NullLogger {
|
||||||
}
|
}
|
||||||
|
|
||||||
run(_, callback) {
|
run(_, callback) {
|
||||||
callback(this._item);
|
return callback(this._item);
|
||||||
}
|
}
|
||||||
|
|
||||||
async export() {
|
async export() {
|
||||||
|
@ -35,7 +35,7 @@ export class NullLogger {
|
||||||
|
|
||||||
class NullLogItem {
|
class NullLogItem {
|
||||||
wrap(_, callback) {
|
wrap(_, callback) {
|
||||||
callback(this);
|
return callback(this);
|
||||||
}
|
}
|
||||||
log() {}
|
log() {}
|
||||||
set() {}
|
set() {}
|
||||||
|
|
Loading…
Reference in a new issue