mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Fix NullLogger
This commit is contained in:
parent
7dc3707871
commit
5d67db0c5e
@ -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 New Issue
Block a user