Skip to content

Commit

Permalink
enable debug logging if the environment variable PK_DEBUG is set
Browse files Browse the repository at this point in the history
  • Loading branch information
pajp committed May 24, 2012
1 parent 585fd59 commit e3080bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Palvelukartta.m
Expand Up @@ -5,6 +5,7 @@
// Copyright (c) 2011 Rasmus Sten. All rights reserved.
//

#include <stdlib.h>
#import "Palvelukartta.h"

@implementation Palvelukartta
Expand All @@ -23,6 +24,9 @@ - (id) init {
urlForConnection = [[NSMutableDictionary alloc] init];
remainingConnections = [[NSMutableSet alloc] init];
pkRestURL = @PK_BASE_URL;
if (getenv("PK_DEBUG") != NULL) {
self.debug = YES;
}
DLOG(@"PK object %@ init", self);
}
return self;
Expand Down

0 comments on commit e3080bc

Please sign in to comment.