fix: replace log.warning with log.warn

minilog does not have `log.warning` api
This commit is contained in:
CRIMX 2021-09-28 11:13:05 +08:00 committed by GitHub
parent 004fa5c792
commit 0b14e89bea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -464,7 +464,7 @@ class VirtualMachine extends EventEmitter {
* @returns {Promise} Promise that resolves after the project has loaded
*/
fromJSON (json) {
log.warning('fromJSON is now just a wrapper around loadProject, please use that function instead.');
log.warn('fromJSON is now just a wrapper around loadProject, please use that function instead.');
return this.loadProject(json);
}