Fix NullLogger

This commit is contained in:
Bruno Windels 2021-02-16 15:35:30 +01:00
parent 7dc3707871
commit 5d67db0c5e

View file

@ -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() {}