Unsuppress useful warnings in core. (#248)
This also temporarily removes `coreLogger`'s config from the public API One reason is that we don't have many logs that could benefit from suppressing (see diff) so the experimental API would not be useful to the user yet. Also, the default config was suppressing useful warnings. Those warnings _would_ have been dead-code-eliminated in production mode anyway, so having a separate config to suppress them in dev mode makes it confusing. Fixes P-171
This commit is contained in:
parent
88df1ef004
commit
a9910fecba
6 changed files with 30 additions and 36 deletions
|
@ -3,7 +3,6 @@ import ReactDOM from 'react-dom'
|
|||
import studio from '@theatre/studio'
|
||||
import {getProject} from '@theatre/core'
|
||||
import {Scene} from './Scene'
|
||||
import {TheatreLoggerLevel} from '@theatre/shared/logger'
|
||||
/**
|
||||
* This is a basic example of using Theatre for manipulating the DOM.
|
||||
*
|
||||
|
@ -16,13 +15,13 @@ studio.initialize()
|
|||
ReactDOM.render(
|
||||
<Scene
|
||||
project={getProject('Sample project', {
|
||||
experiments: {
|
||||
logging: {
|
||||
internal: true,
|
||||
dev: true,
|
||||
min: TheatreLoggerLevel.TRACE,
|
||||
},
|
||||
},
|
||||
// experiments: {
|
||||
// logging: {
|
||||
// internal: true,
|
||||
// dev: true,
|
||||
// min: TheatreLoggerLevel.TRACE,
|
||||
// },
|
||||
// },
|
||||
})}
|
||||
/>,
|
||||
document.getElementById('root'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue