Skip to content

Commit

Permalink
constants to use lowerCamelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit R. Abbadi authored and tiholic committed May 5, 2020
1 parent 67cee6d commit cbf0f5f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class _MyAppState extends State<MyApp> {

final clientOptions = ably.ClientOptions.fromKey(_appKey.toString());
clientOptions.environment = 'sandbox';
clientOptions.logLevel = ably.LogLevel.VERBOSE;
clientOptions.logLevel = ably.LogLevel.verbose;
clientOptions.logHandler = ({String msg, ably.AblyException exception}){
print("Custom logger :: $msg $exception");
};
Expand Down Expand Up @@ -127,7 +127,7 @@ class _MyAppState extends State<MyApp> {

final clientOptions = ably.ClientOptions.fromKey(_appKey.toString());
clientOptions.environment = 'sandbox';
clientOptions.logLevel = ably.LogLevel.VERBOSE;
clientOptions.logLevel = ably.LogLevel.verbose;
clientOptions.logHandler = ({String msg, ably.AblyException exception}){
print("Custom logger :: $msg $exception");
};
Expand Down
12 changes: 6 additions & 6 deletions lib/src/spec/constants.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class LogLevel{
static final int NONE = 99;
static final int VERBOSE = 2;
static final int DEBUG = 3;
static final int INFO = 4;
static final int WARN = 5;
static final int ERROR = 6;
static final int none = 99;
static final int verbose = 2;
static final int debug = 3;
static final int info = 4;
static final int warn = 5;
static final int error = 6;
}
2 changes: 1 addition & 1 deletion test/ably_api_unit_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ void main() {
test('Default ClientOptions', () {
final clientOptions = ClientOptions();
expect(clientOptions.clientId, isNull);
expect(clientOptions.logLevel, LogLevel.INFO);
expect(clientOptions.logLevel, LogLevel.info);
expect(clientOptions.logHandler, isNull);
expect(clientOptions.tls, isNull);
expect(clientOptions.restHost, isNull);
Expand Down

0 comments on commit cbf0f5f

Please sign in to comment.