Introduce isStagingServer util method
This commit is contained in:
parent
4cdb6fab08
commit
cd44a7a033
24 changed files with 80 additions and 71 deletions
|
@ -85,7 +85,7 @@ export function initialize(): void {
|
|||
// A modern logging interface for the browser
|
||||
|
||||
function logAtLevel(level: LogLevel, ...args: ReadonlyArray<unknown>): void {
|
||||
if (getEnvironment() !== Environment.Production) {
|
||||
if (getEnvironment() !== Environment.PackagedApp) {
|
||||
const prefix = getLogLevelString(level)
|
||||
.toUpperCase()
|
||||
.padEnd(levelMaxLength, ' ');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue