fix: change loglevel for beta (#856)
* fix: change loglevel for beta closes #578 Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca> * test: update to new default LogLevel Signed-off-by: Olivier Albertini <olivier.albertini@montreal.ca>
This commit is contained in:
		
							parent
							
								
									11be782e10
								
							
						
					
					
						commit
						d6b2e62a76
					
				|  | @ -18,7 +18,7 @@ import { Logger } from '@opentelemetry/api'; | |||
| import { LogLevel } from './types'; | ||||
| 
 | ||||
| export class ConsoleLogger implements Logger { | ||||
|   constructor(level: LogLevel = LogLevel.DEBUG) { | ||||
|   constructor(level: LogLevel = LogLevel.INFO) { | ||||
|     if (level >= LogLevel.DEBUG) { | ||||
|       this.debug = (...args) => { | ||||
|         console.debug(...args); | ||||
|  |  | |||
|  | @ -65,8 +65,6 @@ describe('ConsoleLogger', () => { | |||
|       assert.deepStrictEqual(warnCalledArgs, ['warn called %s', 'param1']); | ||||
|       consoleLogger.info('info called %s', 'param1'); | ||||
|       assert.deepStrictEqual(infoCalledArgs, ['info called %s', 'param1']); | ||||
|       consoleLogger.debug('debug called %s', 'param1'); | ||||
|       assert.deepStrictEqual(debugCalledArgs, ['debug called %s', 'param1']); | ||||
|     }); | ||||
| 
 | ||||
|     it('should log with debug', () => { | ||||
|  |  | |||
|  | @ -72,7 +72,7 @@ export interface MeterConfig { | |||
| 
 | ||||
| /** Default Meter configuration. */ | ||||
| export const DEFAULT_CONFIG = { | ||||
|   logLevel: LogLevel.DEBUG, | ||||
|   logLevel: LogLevel.INFO, | ||||
| }; | ||||
| 
 | ||||
| /** The default metric creation options value. */ | ||||
|  |  | |||
|  | @ -31,7 +31,7 @@ export const DEFAULT_MAX_LINKS_PER_SPAN = 32; | |||
|  */ | ||||
| export const DEFAULT_CONFIG = { | ||||
|   defaultAttributes: {}, | ||||
|   logLevel: LogLevel.DEBUG, | ||||
|   logLevel: LogLevel.INFO, | ||||
|   sampler: ALWAYS_SAMPLER, | ||||
|   traceParams: { | ||||
|     numberOfAttributesPerSpan: DEFAULT_MAX_ATTRIBUTES_PER_SPAN, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue