Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
d13fea7e
Commit
d13fea7e
authored
Nov 24, 2020
by
aniket-engg
Committed by
Aniket
Nov 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
logger import fixed
parent
52496e1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
server.ts
libs/remix-simulator/src/server.ts
+5
-6
No files found.
libs/remix-simulator/src/server.ts
View file @
d13fea7e
...
@@ -4,8 +4,7 @@ import bodyParser from 'body-parser'
...
@@ -4,8 +4,7 @@ import bodyParser from 'body-parser'
const
app
=
express
()
const
app
=
express
()
import
expressWs
from
'express-ws'
import
expressWs
from
'express-ws'
import
{
Provider
}
from
'./provider'
import
{
Provider
}
from
'./provider'
import
{
Logger
}
from
'./utils/logs'
import
{
log
}
from
'./utils/logs'
const
logger
=
new
Logger
()
class
Server
{
class
Server
{
...
@@ -15,9 +14,9 @@ class Server {
...
@@ -15,9 +14,9 @@ class Server {
constructor
(
options
)
{
constructor
(
options
)
{
this
.
provider
=
new
Provider
(
options
)
this
.
provider
=
new
Provider
(
options
)
this
.
provider
.
init
().
then
(()
=>
{
this
.
provider
.
init
().
then
(()
=>
{
log
ger
.
log
(
'Provider initiated'
)
log
(
'Provider initiated'
)
}).
catch
((
error
)
=>
{
}).
catch
((
error
)
=>
{
log
ger
.
log
(
error
)
log
(
error
)
})
})
this
.
rpcOnly
=
options
.
rpc
this
.
rpcOnly
=
options
.
rpc
}
}
...
@@ -60,9 +59,9 @@ class Server {
...
@@ -60,9 +59,9 @@ class Server {
}
}
app
.
listen
(
port
,
host
,
()
=>
{
app
.
listen
(
port
,
host
,
()
=>
{
log
ger
.
log
(
'Remix Simulator listening on ws://'
+
host
+
':'
+
port
)
log
(
'Remix Simulator listening on ws://'
+
host
+
':'
+
port
)
if
(
!
this
.
rpcOnly
)
{
if
(
!
this
.
rpcOnly
)
{
log
ger
.
log
(
'http json-rpc is deprecated and disabled by default. To enable it use --rpc'
)
log
(
'http json-rpc is deprecated and disabled by default. To enable it use --rpc'
)
}
}
})
})
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment